- Download one of the bundles to disk.
- Set JAVA_HOME to the JDK you have installed on your system.
- Unpack the JAR file that you downloaded.
% java -Xmx256m -jar filename.jar
This command extracts the contents of the GlassFish JAR file and creates a new directory structure rooted under a directory named glassfish. - Navigate to the glassfish directory.
% cd glassfish
- Change permissions for the contents of the glassfish directory.
% chmod -R +x lib/ant/bin
- Run the Ant binaries that are included with the GlassFish bundle.
- For a single instance:
%lib/ant/bin/ant -f setup.xml
- For a cluster:
% lib/ant/bin/ant -f setup-cluster.xml
- enter into glassfish/bin :cd /glassfish/bin
- Start the server by entering this command: ./asadmin start-domain domain1
- test server by enter http://localhost:4848:/login.jsf in your browser
Reference:
https://glassfish.dev.java.net/downloads/v2ur2-b04.html
https://glassfish.dev.java.net/downloads/quickstart/index.html
Thank for your guide.
I have an issue where I install glassfish v2.1 in solaris sparc(solaris 10). I find out that glassfish will shutdown if my domain was idle for certain period of time(> 10hour). There is nothing is server/jvm log. Is there any configuration that i need to do so that glassfish wont down after a period of idle time?? any other log that i can trace ??
I try glassfish in my laptop environment, i dont face this issue.
Posted by ntc2000 on June 23, 2009 at 05:42 PM CST #