Adam Bien's Weblog

Wednesday Feb 10, 2010

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.



*NEW* Workshop: "Real World Java EE 6/7 Bootstrap" and book: Real World Java EE Night Hacks--Dissecting the Business Tier

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 04: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 06: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 12: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 06:57 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Meta
My Recent Book
Java One 2009/2011
...the last 150 posts
...the last 10 comments
Links
License