GlassFish v2 on OpenSolaris

One of the nice things about the recent OpenSolaris release is the size of the ISO (it fits on a CD). The IPS (Image Packaging System) takes care of adding the additional features such as GlassFish v2 (with a nice use of ZFS to snapshot before/after state of the filesystem).

Installing GlassFish v2 using IPS and the graphical tool (/usr/bin/packagemanager) is quite easy but has a few gotchas:
• proxy - when using an HTTP proxy, you need to export http_proxy=http://host:port and launch gksu /usr/bin/packagemanager from the same shell.
• no domain created - the binary installed doesn't provide a domain (like the traditional domain1) by default. You need to create the /var/appserver/domains directory before you can use asadmin create-domain.
• the version installed is 9.1_01, not the latest 9.1_02 (or 2.0_02 with the GlassFish numbering)

The total download is around 250 MB (includes JDK 6)

Comments:

I installed the glassfishv2 package on my OpenSolaris box last night before having read this blog entry. While installing it I had a few questions that required some guessing or google searches:

\* I tried to pkg search for glassfish packages and could not find them.

ryan@ryco-sv1:~# pkg search -r glassfish
ryan@ryco-sv1:~# pkg search -r glassfishv2
ryan@ryco-sv1:~# pkg search -l glassfish
ryan@ryco-sv1:~# pkg search -l glassfishv2
ryan@ryco-sv1:~# pkg search glassfish
ryan@ryco-sv1:~# pkg search glassfishv2
ryan@ryco-sv1:~# pkg info glassfishv2
Name: glassfishv2
Summary: GlassFish Java EE 5 Application Server
State: Installed
Authority: opensolaris.org (preferred)
Version: 0.5.11
Build Release: 5.11
Branch: 0.86
Packaging Date: Mon Apr 28 16:33:23 2008
Size: 79.4 MB
FMRI: pkg:/glassfishv2@0.5.11,5.11-0.86:20080428T163323Z

\* I have to create the /var/appserver/domains folder myself. Who should the owner/group be? What should the permissions be?
\* I had to run asadmin create-domain and wanted a quick example of how to do it instead of having to read the man page on every parameter. I found a good example in the middle of this page: http://www.nixstyle.net/moin/TechNotes/Java/Glassfish
\* I was unhappy to read about asadmin create-service looking specifically for Solaris 10 and not allowing itself to generate SMF xml file for OpenSolaris. It would be great if it would generate it, and import it into SMF for me.
\* Maybe I did something wrong but /etc/init.d/appserver stop (or start) does absolutely nothing. GlassFish doesn't start when I reboot the computer so I have to asadmin start-domain domain1 manually.
\* I was surprised to find update center missing
\* I wondered how the upgrade to UR2 or future update releases will work.

I got GlassFish working, but thought you might like to know what I was thinking when trying it out on OpenSolaris 2008.05.

Posted by Ryan de Laplante on juin 30, 2008 at 08:24 PM CEST #

Post a Comment:
Comments are closed for this entry.
About

This blog has moved

Alexis Moussine-Pouchkine's Weblog

GlassFish - Stay Connected

Search

Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today
Blogroll

No bookmarks in folder

News

No bookmarks in folder