To start and stop the J2EE RI server

  1. Set up the J2EE_HOME, JAVA_HOME and PATH environment variables to point to the locations of the Java Development Kit (JDK) and the J2EE Software Development Kit (SDK). For example, here is a sample script that sets up the environment variables and paths, assuming that the SDK and JDK are installed in the default locations:
    JAVA_HOME=/usr/java131
    export JAVA_HOME
    J2EE_HOME=/home/java/j2sdkee1.3.1
    export J2EE_HOME
    PATH=$JAVA_HOME:$J2EE_HOME/bin:$PATH
    export PATH
  2. To start the server, type:

    j2ee.sh [-verbose]

    where -verbose is optional and outputs messages to the current shell.

    If you omit verbose, output is redirected to:

    logs/machine/j2ee/j2ee/system.out for messages

    logs/machine/j2ee/j2ee/system.err for errors

  3. To stop the server, type:

    j2ee.sh - stop

Note: Whenever you stop and restart an enterprise server, you need to stop and restart the J2EE RI server.

Related Topics