GlassFish
From DesigningPatterns
Background
GlassFish is a J2EE application server.
Installation
Download the jar file and follow the installation instructions.
If the ant build breaks with this:
create.domain:
[exec] Oct 3, 2008 5:35:47 PM com.sun.enterprise.util.ASenvPropertyReader setSystemProperties
[exec] SEVERE: property_reader.unknownHost
[exec] java.net.UnknownHostException: jackfruit: jackfruit
then the machine's name is does not map to an IP address. To fix this, list the machine's name with 127.0.0.1 in /etc/hosts.
If the ant build breaks with this:
create.domain:
[exec] Using port 4848 for Admin.
[exec] Using port 8081 for HTTP Instance.
[exec] Using port 7676 for JMS.
[exec] Using port 3700 for IIOP.
[exec] Using port 8181 for HTTP_SSL.
[exec] Using default port 3820 for IIOP_SSL.
[exec] Using default port 3920 for IIOP_MUTUALAUTH.
[exec] Using default port 8686 for JMX_ADMIN.
[exec] Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
[exec] Security Store uses: JKS
[exec] keytool error: java.io.IOException: Invalid keystore format
[exec]
[exec] CLI130 Could not create domain, domain1
you probably will need to use the Sun JDK rather than the Open JDK. Instructions on installing the Sun JDK can be found here. This forum post describes the problem fully. After installing the Sun JDK, change the AS_JAVA variable in $GLASSFISH_HOME/asenv.conf to point to the new JDK.
