All Articles

How to install GlassFish v2 on OSX Leopard

Ok, lets start

  1. download the latest glassfishv2 from
  2. copy/move the installer to an appropriate installation location
  3. open terminal and type command : java -Xmx256m -jar glassfish-installer-v2*.jar
  4. accept the license agreement, and wait until you see like this : installation complete.
  5. change directory to installation dir (glashfish) and type command : ant -f setup.xml
  6. wait until you see : BUILD SUCCESSFUL
  7. fix bug : edit domains/domain1/config/domain.xml file, search this line: [code language=“java”] jmx-connector accept-all=“false” address=“localhost” auth-realm-name=“admin-realm” enabled=“true” name=“system” port=“8686” protocol=“rmi_jrmp” security-enabled=“false” [/code] Change address=“localhost” to address=“” Save and close
  8. from bin folder type command : ./asadmin start-domain domain1 9.wait until you see : Domain domain1 is ready to receive client requests. Additional services are being started in background.
  9. open your browser and type the following url http://localhost:8080. Admin console is available at http://localhost:4848 (u:admin, p:adminadmin)