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.

Comments:

where can i get the package????
not able to find it on net and also please provide the complete steps to fix this issue

Posted by vivek on January 21, 2011 at 05:29 PM CET #

@Vivek,

sorry - but I don't run solaris any more, so I won't be able to re-produce your problem,

adam

Posted by adam-bien.com on January 21, 2011 at 07:45 PM CET #

@vivek On Solaris Express and opensolaris it should be the same. After you unzip and run glassfish you may have to add your solaris pkg repo back. I did:

# pkg set-publisher -O http://pkg.oracle.com/solaris/release/ solaris

then

# pkg install --accept SUNWlang-enUS

ymmv

Posted by Scott on April 02, 2011 at 02:54 AM CEST #

In the end I copied the entire usr lib iconv direcotry from the global zone to the non global and that worked out.

Posted by Scott on April 04, 2011 at 08:57 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License