Sun GlassFish Web Space Server 10.0 Administration Guide

Troubleshooting for Installation Issues

If you are deploying Web Space Server on an existing installation of GlassFish, you need to determine the install location of GlassFish. If GlassFish is installed at the root directory, you can deploy Web Space Server either at the root directory or at the user directory. If GlassFish is installed at your user directory, you must install Web Space Server at the same user directory.

If the JDK, GlassFish, and Web Space Serversoftware are all installed,Web Space Server is at the top layer, GlassFish is in the middle layer, and JDK is in the bottom layer. When you are using the GlassFish Web Space Server bundle, you need to determine the install location of JDK. If JDK is at the root directory, you can install the bundle either at the root directory or at your user directory. If JDK is installed at the user directory, you need to install the bundle at the same directory.


Note –

It is a good practice to have your GlassFish installation dedicated only for running Web Space Server.


Suppose you have JDK 1.5 installed in the root directory and you have installed JDK 1.6 in your user directory. Because Web Space Server often works better on a more recent JDK version, you might want to override the installation at the root directory.

ProcedureTo Reset the JAVA_HOME Variable to the User Directory

  1. Type the following commands in a terminal window:

    export JAVA_HOME JDK-install-dir
    export PATH=$JAVA_HOME/bin:$PATH
  2. To verify the change, type the following command:

    echo $JAVA_HOME

    The new directory should be listed.

ProcedureTo Set the JAVA_HOME Environment Variable to the User Directory on Non Solaris Operating Systems

  1. Open the GlassFish-install-dir/config/asenv.conf/asenv.bat file.

  2. Set the AS_JAVA variable to the JDK 1.6 user installation.

  3. Reinstall the Web Space Server bundle and start the domain.