users@glassfish.java.net

Re: Problems to install the glassfish on CentOS (Moving from Glassfish v2)

From: <glassfish_at_javadesktop.org>
Date: Sun, 21 Dec 2008 01:50:55 PST

Did you do steps 5 - 7 (below) ? If not, you may want to re-install glassfish again. To re-install, please follow these steps strictly (Centos 5.x specific):
 
1.java -version (You need JDK 5 or 6)
2.Made a backup copy of your domain.xml and copy it to arm's way
3.Uninstall glassfish using uninstall. (Neat uninstalling can be tricky and I have forgotten how I did mine on Centos 5.x)
4.java -jar <glassfish-install-filename.jar>
5.cd glassfish
6.chmod -R +x lib/ant/bin
7.lib/ant/bin/ant -f setup.xml (I assume you are not using cluster)
8../asadmin start-database (If you are using the database)
9../asadmin start-domain domain1 (To starting glassfish)
10.The server will now be running.
11.In your brower, type http://localhost:4848 for the admin console
12.Login as Admin - userid="admin", password ="adminadmin"

It is less hassle to do compare of you backup domain.xml and you newly installed domain.xml and copy your old setting from the old to the new rather than via the admin console. But first make a backup of the new domain.xml. 'Meld Diff Viewer' for linux is a very useful tool for 'diffing' files.

Note

These days I always add “./” to 'asadmin' to make sure that I am running the glassfish version of my choice--I noticed that if you have more than one version of glassfish installed, 'asadmin' ( without “./”) might not necessarily be the 'asadmin' you have in mind.
[Message sent by forum member 'nuffsaidx' (nuffsaidx)]

http://forums.java.net/jive/thread.jspa?messageID=322813