Glassfish v3 in an (opensolaris) zone ...an interesting error and solution

After the installation of Glassfish v3 in an opensolaris zone, Derby booted perfectly, but Glassfish v3 threw this interesting exception:

Waiting for DAS to start ..Error starting domain: domain1.

The server exited prematurely with exit code 6.

Before it died, it produced the following output:

UTF ERROR ["../../../src/solaris/instrument/EncodingSupport_md.c":66]: Failed to complete 

iconv_open() setup

A zone is a lean, isolated kernel with only the essential stuff. It comes without any language and encoding support. The remedy for this problem is the installation of the package (SUNWlang-enUS) with: pkg install SUNWlang-enUS, and setting the preferred language in the .profile to e.g. export LANG=en_US.UTF-8 (thanks Manfred Riem for this hint).

Zones are really interesting for configuration and isolation. They are pretty fast as well. Booting a zone is almost as fast, as deployment of a Java EE 6 application :-) -> on my machine it takes <1 second.

bad pbr sig - and a simple solution

After the addition of a hard disc to a mirrored zfs rpool, the boot process immediately stopped with the GRUB message: "bad pbr sig". It means that something is wrong with the Primary Boot Record (aka Master Boot Record). The solution was simple - I swapped the boot order of the hard discs in BIOS. Now it works perfectly again.

...the last 150 posts
...the last 10 comments
License