Installing Glassfish in Ubuntu Feisty
If it was already easy install glassfish, it is easier in recently released Ubuntu Feisty. The truth is that the step that Sun Microsystem has given liberating his implementation of Java, is going to have an incredible aftereffect in the world of open source. Certainly, since we are going to see next, this step make the instalation of glassfish Java EE server a children's thing.
We start by executing this great invention called apt-get
apt-get install glassfish
Apt-get calculates the dependencies and warns us that he needs to install glassfish-bin, imq (JMS from Sun) and sunderby
root@www1:/home/lasterra# apt-get install glassfish
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
glassfish-bin imq sunwderby
The following NEW packages will be installed:
glassfish glassfish-bin imq sunwderby
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/54,2MB of archives.
After unpacking 65,6MB of additional disk space will be used.
Do you want to continue [Y/n]?
We say yes, after it discharges of bundles and the rapid process of installation one shows us the license of Sun, read it thouroughly and make sure that we are not going to develop software for nuclear use. It is not my case, so we accept ;-)
The process of installation begins ... but after changing the permissions of administration commands...the first issue. After several reattempts and waitting more time, the process shows me a message with very clear error, the port 8080 is already bound and glassfish use it by default.
Really a tomcat of my machine use this port, I change it and I throw the process of installation again with:
dpkg --configure glassfih
I accept the license again and now it runs ok, after a few seconds of suspense, the process of installation finishes and glassfish starts automatically. In the console Glassfish show us the same logs that we saw after the manual server instalation
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Domain domain1 created.
Starting Domain domain1, please wait.
Log redirected to /var/lib/sunappserver/domains/domain1/logs/server.log.
Domain domain1 is ready to receive client requests. Additional services are being
started in background.
Domain [domain1] is running [Sun Java System Application Server Platform Edition
9.0_01 (build b21)] with its configuration and logs at: [/var/lib/sunappserver/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /asadmin ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].
Gaining access to the port 80 we can verify that the server is already working correctly. Notice that the build is b21, the last stable version of glassfish v1.





