Angelo Joseph's Weblog The Technophiles

Friday Mar 16, 2007



The following is a quick cheatsheet from scratch to get GlassFish V2 up and running 

(1) Install JDK6 from http://java.sun.com/javase/downloads/index.jsp
- JAVA_HOME=<java install dir>
- PATH=%PATH%;%JAVA_HOME%/bin

(2) Install Glassfish v2b39 from https://glassfish.dev.java.net/downloads/v2-b39.html
- java -Xmx256m -jar glassfish-installer-v2-b39.jar
- PATH=%PATH%;<glassfish install dir>/bin


(3) Setup Ant 1.7.0 from the Glassfish distribution
- ANT_HOME=<glassfish install dir>/lib/ant
- PATH=%PATH%;%ANT_HOME%/bin

(4) Setup Glassfish v2b39
- cd <glassfish install dir>
- ant -f setup.xml
- asadmin start-domain domain1


* and we're done! *

(5) Test Glassfish Setup
http://localhost:8080/

(6) Test Helloworld
copy hello.war from http://glassfish.dev.java.net/downloads/quickstart/hello.war
to /domain/domain1/autodeploy
then go to http://localhost:8080/hello


(7) Test Glassfish Admin Screen
go to http://localhost:4848/
uid: admin
passwd: adminadmin


Comments:

10 minutes? Ask your manager for a faster machine! :) ANT is part of GlassFish already (lib/ant/bin/ant) btw.

Posted by Alexis MP on March 16, 2007 at 01:34 AM EST #

I just type slow :)

Posted by AngeloJ on March 16, 2007 at 01:37 AM EST #

Well, I have to tell you that is a much clearer set of instructions than what glassfish ships with.
Total time six minutes
headaches: 1 - had to readjust that path from what I thought it was to what it actually was.
Thanks

Posted by Bob on October 27, 2007 at 08:34 AM EST #

Post a Comment:
  • HTML Syntax: NOT allowed