SFD2008 in GuiZhou University Eddan

Saturday Jan 10, 2009

  1. Download one of the bundles to disk.

  2. Set JAVA_HOME to the JDK you have installed on your system.

  3. 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.

  4. Navigate to the glassfish directory.
     % cd glassfish
  5. Change permissions for the contents of the glassfish directory.
    % chmod -R +x lib/ant/bin
  6. 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

  7. enter into glassfish/bin :cd /glassfish/bin
  8. Start the server by entering this command: ./asadmin start-domain domain1
  9. 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

Comments:

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 #

Post a Comment:
  • HTML Syntax: NOT allowed