Glassfish was Sun’s open source application server. This was written in 2009 and at some point Sun/Oracle shit canned it. These notes are no longer worthwhile and I have marked the article as deprecated. If you want to see what I said, then you can read more …

Otherwise here are my notes on trying to get it work. I didn’t succeed, and I think it’s gone now. I got stuck because I wanted to use Ubuntu’s repo and the start/stop scripts were barfed. I expect that now all the Sun links are broken.

Installing

I have installed it on an Ubuntu 8.04 Virtual Box Image.

I have a problem here, there is a script asadmin in /usr/bin, which looks broken to me. I’d be surprised if I were the first person to find it, but I have not created an automatic service start/stop yet; this script overwrites my bespoke configuration parameters. The script points to another script called the same in /usr/share/glassfishv2/bin, which is the Sun Version. I shall investigate this problem and also possibly why the rc.glassfish files aren’t part of the package.

I’ll write it up some more later.

  • Use synaptic to download glassfish
  • asadmin is in the /usr/bin

then

  • create a system user
  • create a directory, chmod 777
  • sudo start

To be done

  • rc.script and integrate into service management, that’s why I looked up bum.

Elsewhere

I had some help

  • Jasper Kalkers blogged about it emphasising how to run it in a non root user. He didn’t use the package manager and so the stuff about building is not necessary, nor was downloading Java, I already have that.
  • Andrew Spooner’s Blog, pointed at by Jasper as his inspiration.

Both were written before Glassfish made it to the Ubuntu apt repositories or they don’t like it, however Jasper refers to apt-get to get Java.

I read up some of the sun documents, which I’ll link another time.

  • the Glass Fish Download page which I eventually didn’t need.
  • FAQ which makes as good a landing page as anything else

ooOOOoo

I have posted on Sun’s java.net forum to try and find out the best communitarian behaviour and to see if anyone else has come across the problem. It seems most people use the Sun install process not APT. The thread link is Glassfish on Ubuntu 8.04, /usr/bin/asadmin. I also looked at Ubuntu’s forums, and searched on “Glassfish” in the “Install & Upgrade” forum. There were two threads both dated around May 2008, which generated Java exceptions. I have had my app server running so I don’t think these apply.The answer to one was to re-install using the Sun Installer; they had a Net Beans integration problem, and the other was trying to use Open JDK, and was advised to use Sun’s. 3rd March 2009

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.