Aug 30, 2008

Information from the Solaris Kernel via kstat ( kernel statistics )

To get information about the running kernel of a Solaris system you can use

There are a lot of fields which you have to interprete. On the OpenSolaris site there
is a project named OpenSolaris Project: JKstat - a java binding for libkstat.

This is a java programming with a binding to the kstat information. JKstat uses the data
to display the data in graphics.

See the screenshots on OpenSolaris and on Peter Tribble's site.

Aug 29, 2008

using a new JDBC-Database in Glassfish

During the deployment of our application from Websphere to Glassfish, I had to
deploy a MySQL driver to use the database.

  • Providing the JDBC Driver in the Glassfish-environment

For the access to a MySQL-database you have to deploy the JDBC-driver.

You have to copy the jar archive of the JDBC driver into the directory

and restart the app server with:

/bin/asadmin stop-domain domain1
/bin/asadmin start-domain domain1

  • creating a JDBC Connection Pool

to access the database a connection pool must be created first.
go to the administration page of Glassfish : ''http://:4848'' .
Use the menue "Resources - JDBC - Connection Pools" with the following data:

Name PoolName
Resource Type javax.sql.DataSource
Database Vendor MySQL

AsDatasource Classname use the default com.mysql.jdbc.jdbc2.optional.MysqlDataSource.

The properties:

portNumber 3306
servername localhost

In the General tab you can use the button "Ping" for testing the database access.

  • Configure the JDBC Resource for an application

Menue Resource - JDBC - JDBC Resource to create a new resource:

PoolName created poolname
Description usage of this resource
Status is the resouce available?

Now you can access the connection via a JNDI Lookup

Aug 27, 2008

Deployment on Glassfish => ordering of xml elements is important

We got the J2EE Application runnable on the WebSphere 6.1 with manually created
deployment descriptors ( by the help of Netbeans ).

Now I created the descriptors for Glassfish. Deployment issued a lot of warnings about
wrong child elements for "ejb" in the sun-ejb-jar.xml.

Checking file:/users/trinomic/ewer/entw/J2EE-JKASSA/jkassa/trunk/config/server/customers/drb/test/deployment/glassfish/ejb-jar/META-INF/sun-ejb-jar.xml...
The content of element type "ejb" must match "(ejb-name,jndi-name?,ejb-ref*,resource-ref*,resource-env-ref*,service-ref*,message-destination-ref*,pass-by-reference?,cmp?,principal?,mdb-connection-factory?,jms-durable-subscription-name?,jms-max-messages-load?,ior-security-config?,is-read-only-bean?,refresh-period-in-seconds?,commit-option?,cmt-timeout-in-seconds?,use-thread-pool-id?,gen-classes?,bean-pool?,bean-cache?,mdb-resource-adapter?,webservice-endpoint*,flush-at-end-of-method?,checkpointed-methods?,checkpoint-at-end-of-method?)". [149]
XML validation finished.

After looking and trying to validate in NetBeans I didn't find anything wrong, but there
was the
element before the 's.
This caused the error.
When moving after the 's, deployment could
continue ...

Aug 26, 2008

Introduction about comparing Solaris / OpenSolaris

Comparison Webcast of Solaris OpenSolaris from Sun Partner Advantage can be
viewed under this link.

Sun Hardware museum in the Sun Benchmark Center Langen/Germany

On YouTube is a video on the Sun Vision TV a section about
Welcome to the Machine.
Here is the link to the last entry
Sunopsis - Sun museum about old hardware.

It is a german video containing the history about Sun Hardware. The
Benchmark Center in Langen/Germany has all Hardware in operational state.

I started using the Sun Hardware at Siemens AG in Austria with the SPARCStation2 and
the IPX.

Aug 24, 2008

installed openSuse 11.0 on my laptop in a VirtualBox image

Finally I installed OpenSuSE 11.0 on my laptop in a VirtualBox environment.

First problem was to start VirtualBox on a SNV_95 OpenSolaris installation.

See Bug on Virtualbox with a Workaround, which allows starting VirtualBox
on OpenSolaris Build : SNV_95

Installation went on via a directly mounted ISO-Image as DVD.

But the Laptop is not powerfull enough to run the virtualized environment
without any problem.

But it works!!!

packagemanager didn't start in OpenSolaris SNV_95 installation

When starting packagemanger, the graphical interface to the IPS ( Image packaging system ) , it didn't simple come up with an interface.

After looking into
I saw that it is a python script with the following starting lines:

import getopt
import os
import sys
import time
import pango
import locale
import socket
import gettext
from threading import Thread
import pygtk
import gobject
import gtk
As a result, I tried to start python in the commandline and import the packages to see which one was failing:

And it was the gtk package which cause the following error message

import gtk Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/", line 48, in ? from gtk import _gtk ImportError: python2.4: fatal: /usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/ open failed: No such file or directory
ls -l /usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/
showed, that the file is available?
LD_DEBUG=help python
shows some help about debugging the dynamic linker.

I think I've used
LD_DEBUG=libs python
>>>import gtk
this showed some elf-errors in the object.

The following command verified the package content

ewer@solewer:~$ pkg verify pkg:/SUNWgnome-python-libs@0.5.11-0.95
pkg:/SUNWgnome-python-libs ERROR
file: usr/share/pygobject/xsl/
Timestamp: 20080427T015835Z should be 20080714T184238Z
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gobject/propertyhelper.pyc
Group: 'root' should be 'bin'
Size: 8796 bytes should be 8855
Hash: c0f287bd871a9ff20c9c7068b519373f0f394508 should be 08adfdf2d71874ae8a47084e6179c655552c59e8
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/
Timestamp: 20080427T015837Z should be 20080714T184241Z
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/__init__.pyc
Group: 'root' should be 'bin'
Hash: ef9e8567d8b44307017931cc2dd5edc9e8e6fa6e should be 7b90e692d6bdb5802753535831691b56e04b2a20
file: usr/lib/python2.4/vendor-packages/gtk-2.0/gtk/
Elfhash: failed to load dynamic section
Hash: 5562800958cfff2f761e9a74889b709ceeffedd8 should be c9766dd3ea4e9a748e8b36180fde345208ba33fa
file: usr/lib/python2.4/vendor-packages/pygtk.pyc
Group: 'root' should be 'bin'
Size: 2018 bytes should be 2077
Hash: cc71bea7bcc7d844d5a7f2ff968f1373cc8b232e should be cd1d57b34276287e1b658058961693687ef1ca63

Which showed, that is invalid !!!!!

After this I updated again the python-package

pfexec pkg uninstall -r pkg:/SUNWgnome-python-libs@0.5.11-0.95
The -r is necessary for depending packages.
pfexec pkg install pkg:/SUNWgnome-python-libs@0.5.11-0.95
After his the packagemanager could be started by
gksu packagemanager

transfere of openSuSE 11.0 DVD image from windows to Solaris

Because of the failed image on the DVD-RW for installing openSuSE 11.0
in a VirtualBox-Image over a FAT32 partition ( limited filesize of 4 GB ) over an external USB drive, I transfered yesterday the image.

The Router was running and I transfered via sftp using the WLAN network.
Therefore on the windows server I installed a SSH-Daemon, configured the
User and transfered to a local ZFS filesystem.

Hope to have a change for trying the VirtualBox-Installation again.

Updated OpenSolaris - Laptop to SNV_95

During the last night I upgraded my OpenSolaris -Installation on the notebook form build snv_94 to the build snv_95.

snv_94 registered in the grub-menu as "OpenSolaris 2008.11"

How did the upgrade work:

pfexec pkg refresh
pfexec pkg image-update

This loaded about 800 mb of packages and created a new boot environment.

ewer@solewer:~/Desktop$ beadm list

BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris no no - 73.32M
opensolaris-1 no no - 74.07M
opensolaris-2 yes yes / 7.53G

( Installation and Update Hints )
This show the current installation of bootable environments on the
root ZFS pool.

Now the boot was successful and everything seems to work.
On the Desktop there is also a registration link starting a JavaWebstart
application to register the installation. It also scans for other products
which can be registerted.

There's also a new Icon about the packagemanager, which I currently can
still not start.

The first thing is the missing gksu.

Aug 23, 2008

WebSphere 6.1 - JMS - ListnerPortNames

During the creation of our prototype of a J2EE solution on Websphere,
we used JMS on a local Websphere installation.

Because of the lack of tools, we created the deployment descriptor by hand.
For the JMS-Communication we defined an activationSpecification in the

All worked fine, but during the deployment at the customer site, they wanted
a listenerPort to be used instead of an activationSpec. So we redesigned
the deployment descriptor. A test of a small demo was successfully at the
customer site.
But after creating the listenerPorts on the local Windows version the application could not start.
There was a problem in the errorlogs, that the listeners could not be started.

The difference is that the customer used MQ-Series as JMS and we used the
delivered JMS-Implementation in the Websphere.
So perhaps the listeners could only be used on external JMS sources,
because the error message mentioned that listeners can not be created on
the default JMS provider.

Aug 21, 2008

Introduction to Crossbow - network virtualization

In the last newletter from bigadmin I refound the PDF document about the introduction to
Crossbow - network virtualization.

This is very interesting about how the new network interface will be designed in OpenSolaris and
later on in Solaris I think.

You define virtual interfaces in software on real interfaces.
You can assign the interfaces to zones, so all the IP features like QoS, firewall, .. can be used in the
Also routers between zones can be established and tracing is also available.

Can only suggest to read it.

A very good introduction to the hidden featuer cachefs in Solaris

This week a red about very interesting feature in Solaris ( available since a long time ).


I found it on the blog of Jörg Moellenkamp.

Here is the link to the cachefs entry.

It allows to localy cache the content of a NFSv3 remote filesystem on the local machine.
There is an automatic check of the metadata, if the file changed on the remote systems.
This automatic check can also be controlled to issue it just when needed.

Aug 18, 2008

Online via mobile internet

Today I got the package from my provider which let switch the online connection
between the ADSL connection and a mobile connection via an USB-modem.

Now I've installed this on Windows XP, but do not know how to do it in OpenSolaris.
Will see if this will work.

Aug 17, 2008

VirtualBox installation of OpenSuse 11

Tried to install OpenSuSE 11 on a VirutalBox in OpenSolaris Build 94.

After the download a had to burn a DVD, because the FAT32 can not share the whole image.
After installing, the "Install media check" returned with a checksum error.
So the next thing is to transfer the image via network and reattempt the install.
But my single cpu on the laptop must work hard for this. I will see if it will work.

Kathy Reichs - Break No Bones

This weekend I finished reading the "Break No Bones" from Kathy Reichs about here
figure Temperance Brannon.

It is a story about a forensic anthropologist. First 2 rd's were a build up of the whole story
and therefore took long for me to read it in English, because my mother tounge is German.

But it was worth reading it.

Saw one of my favorite movie since a long time

This weekend was the "Der Club der Toten Dichter" ( Dead Poets Society ) on TV again.
I think it is a very good movie. More than 10 year's ago I owned the book "Dead Poet Society"
but borrowed it and didn't get it back.

Aug 13, 2008

Netbeans 6.5 Beta is out

It is available. The Netbeans 6.5 Beta is out with a whole bunch of new features.

I've already downloaded and will try it.

There is also the milestone 6 for nbPython available.

CD with a bunch of tools for Performance monitoring/checking

Here is the link to the Performance CD 3.0 , I've also documented some time ago in

I even did not have time to check, but It was recommended by the crew to one of my
collegue during a test in ther Performance Center in Langen/Germany.
This is also one thing I like to check in the future.

German free Sun Forum

Under the link you find a free sun forum discussed in German.

Aug 12, 2008

Failed to transfere the OpenSuSE 11.0 iso-DVD-Image

For my next test of OpenSuSE 11.0 in a virtualbox session on opensolaris I downloaded the
DVD ISO image. I started on my PC and tried to move the downloaded ISO image to the
USB drive. The partition on the USB Drive is FAT32 to transfere data between Windows and

After the download I tried to move, but got always the error message, that there is not enough
space available, although the partition had 6 gb and the other 25 gb free ??????

After burning it onto a RW-DVD, I looked up the probelm and found a hint in wikipedia.
For FAT32 this is 4gb -1 Byte !!!. So this is the problem and not enough space on the harddrive.

Aug 8, 2008

installing packages in OpenSolaris

There are a lot more packages available, but when using
pfexec pkg list

there are only the local one shown.


pfexec pkg list -a

to see also the packages remotely available.
There you can install openoffice, SunStudio and also the express version, but you
need a flat rate to download the whole stuff.

This week we got our terrace roof

The last summers we could not use our terrace at home, because the sun was to hot and
the wind was nearly always to strong for a sunshade.

So this year we decided to get a terrace roof.

We got it from Brüder Feldhofer Ges.m.b.H, a company in Schachen/Vorau.
We are really satisfied with them. They work fast, on time and clean.

Andreas and Karin married today at the civil registry office in Tobaj

Today my friend Andreas married his wife Karin at the civil registry office in

Wish them all the best things for their live.

Aug 7, 2008

upgraded notebook to opensolaris

I've used the SXCE ( Solaris Express Community Edition ) on my laptop.

There were 2 partitions available, where both were managed by live upgrade.

To upgrade, I downloaded the iso-Image on an external USB drive and mounted
the isoimage via

lodfiadm -a /path/to/image
mount -F hsfs /mnt
luupgrade ....

After a short test on the PC with the OpenSolaris 2008.05 I got on a CD during the conference JavaDeus08 in St. Pölten/Austria

The installation was straight forward, although I missed the parametrization of multiple slices, but this is not a such problem, because of using ZFS on the root filesystem.

The update is also simple via
pfexec pkg refresh
pfexec pkg image-update

But for the OpenSolaris 2008.05 there must be paid attention because of changes of grub.

For more information see this thread.
It is necessary to update the SUNWipkg.

Now I've als installed OpenSolaris on my laptop migrating both slices to one
big pool.
The boot manager recognized the installed Windows XP and everything works
fine, because I'm writing this entry from the installed OpenSolaris version.