Using pkg(5) GlassFish v2.1 Packages
By ckamps on Sep 16, 2009
We don't offer a standalone distribution (download bundles + dedicated repos) for GlassFish v2.1, but we do produce and maintain v2.1 packages in support of GlassFish Web Space Server deployments (see my earlier post for background). Although Web Space Server is currently the only distribution that embeds these packages, you can easily experiment with the packages by installing them from our layered collection development repository. The beauty of the packaging system and our repositories is that it's quite simple to try out these and other packages:
- Download a copy of the Update Center Toolkit. Alternatively, if you're already on OpenSolaris or you already have the toolkit available with the pkg(1) CLI, move on to the next step.
- pkg image-create --user -p layered.sun.com=http://pkg.sun.com/layered/collection/dev/ ~/gfv2.1
- cd ~/gfv2.1
- pkg install glassfish2
- cd glassfish2
- ../ant/bin/ant -f setup.xml
- bin/asadmin start-domain
- Access http://localhost:4848 and log in with admin / adminadmin
Voila! That's it.
If you'd like to run the Update Tool GUI to further explore the other packages, execute "pkg install updatetool" and run "bin/updatetool". Otherwise, you can execute "pkg list -a" to see the list of all packages that are available for installation on your platform.