Search
Translations of this page:

How to Install GlassFish on a Joyent Accelerator

Get the Software

Log into your accelerator as the user you wish to install as then

Make sure the user has all the proper pathing for java

This was done on a 1 GiB Accelerator for testing. Do not try to run Glassfish on anything smaller than this. It is a heavy weight application server.

Get the Software

CD to a directory where you wish to install the software

wget http://java.net/download/javaee5/v2ur2/promoted/SunOS_X86/glassfish-installer-v2ur2-b04-sunos_x86.jar

Install the software


java -Xmx256m -jar glassfish-installer-v2ur2-b04-sunos_x86.jar

cd into the new directory that was just created

cd glassfish

chmod -R +x lib/ant/bin

add <install-dir>/bin to your PATH

<alert>Make sure you logout/login to pick up the new path or reexport the path.</alert>

You need to patch the asadmin script to actually create the first domain

Java Needs a little memory tweak. Don't forget this or your Ant build will fail later probably.

In the bin/asadmin script:

Replace:

"$AS_JAVA"/bin/java -Dcom.sun.aas.instanceName=server -Djava.library.path="$AS_NSS":"$AS_INSTALL/lib":"$AS_ICU_LIB" -Dcom.sun.aas.configRoot="$AS_CONFIG" -Djava.endorsed.dirs="$AS_INSTALL/lib/end
orsed" -Dcom.sun.aas.processLauncher="SE" -cp "$AS_DERBY_INSTALL/lib/derby.jar":"$AS_INSTALL/jbi/lib/jbi-admin-cli.jar":"$AS_INSTALL/jbi/lib/jbi-admin-common.jar":"$AS_INSTALL/lib":"$AS_INSTALL/l
ib/appserv-rt.jar":"$AS_INSTALL/lib/appserv-ext.jar":"$AS_INSTALL/lib/javaee.jar":"$AS_INSTALL/lib/appserv-se.jar":"$AS_INSTALL/lib/admin-cli.jar":"$AS_INSTALL/lib/appserv-admin.jar":"$AS_INSTALL
/lib/commons-launcher.jar":"$AS_INSTALL/lib/install/applications/jmsra/imqjmsra.jar" -Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
com.sun.enterprise.cli.framework.CLIMain "${@}"

To Be:

"$AS_JAVA"/bin/java -Xms32m -Xmx256m -Dcom.sun.aas.instanceName=server -Djava.library.path="$AS_NSS":"$AS_INSTALL/lib":"$AS_ICU_LIB" -Dcom.sun.aas.configRoot="$AS_CONFIG" -Djava.endorsed.dirs="$AS_INSTALL/lib/end
orsed" -Dcom.sun.aas.processLauncher="SE" -cp "$AS_DERBY_INSTALL/lib/derby.jar":"$AS_INSTALL/jbi/lib/jbi-admin-cli.jar":"$AS_INSTALL/jbi/lib/jbi-admin-common.jar":"$AS_INSTALL/lib":"$AS_INSTALL/l
ib/appserv-rt.jar":"$AS_INSTALL/lib/appserv-ext.jar":"$AS_INSTALL/lib/javaee.jar":"$AS_INSTALL/lib/appserv-se.jar":"$AS_INSTALL/lib/admin-cli.jar":"$AS_INSTALL/lib/appserv-admin.jar":"$AS_INSTALL
/lib/commons-launcher.jar":"$AS_INSTALL/lib/install/applications/jmsra/imqjmsra.jar" -Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
com.sun.enterprise.cli.framework.CLIMain "${@}"

Execute the Ant build

From the Root install directory

lib/ant/bin/ant -f setup.xml

Final Output:

create.domain:
     [exec] Using port 4848 for Admin.
     [exec] Using port 8080 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] Domain domain1 created.
     [exec] Login information relevant to admin user name [admin] for this domain [domain1] stored at [/home/jill/.asadminpass] successfully.
     [exec] Make sure that this file remains protected. Information stored in this file will be used by asadmin commands to manage this domain.
   [delete] Deleting: /home/jill/web/glassfish/glassfish/passfile

BUILD SUCCESSFUL
Total time: 13 seconds

Start the Server

asadmin start-domain domain1

Now What?

This is not exhaustive documentation. But, it will get you up and running quickly. For next steps you will need to refer to the Glassfish QuickStart guide.

 
all-accelerators/kb/glassfish.txt · Last modified: 2008/11/16 02:15 by alexbcoles
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki