Standalone OC4J Dies when Launching Application Server Control Using "nohup" in a Terminal and Closing the Terminal

(Doc ID 396076.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version: to - Release: AS10gR3 to AS10gR3
Information in this document applies to any platform.
***Checked for relevance on 25-Feb-2012**


Users can access the OC4j home page on port 8888

However trying to launch the Application Server Control from the OC4J home page, causes OC4J to crash.

The only way in which it is successfully launching the Application Server Control
is when starting OC4J from an xterm session and not logging out of the xterm session.

06/09/27 13:27:54.881 ascontrol: SubmitButtonBean, localName='submitButton':
Could not initialize the graphical environment. Please make sure that the DISPLAY environment
variable is set correctly. Proceeding with image generation disabled...
06/09/28 11:29:09.94 ascontrol: Broken pipe
06/09/28 11:29:09.106 ascontrol: Broken pipe
06/09/28 11:31:06.942 ascontrol: #OHW2 LOG# Visit logged for
06/09/28 11:57:54.885 ascontrol: Stopped
06/09/28 12:02:16.541 Started
06/09/28 12:02:26.64 ascontrol: Started
06/09/28 12:02:39.295 ascontrol: SubmitButtonBean, localName='submitButton':
The following exception was thrown while initialiazing the graphics environment:
06/09/28 12:02:39.306 ascontrol: java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
at$ Source)

The issue can be reproduced at will with the following steps:

  1. Set the environment as indicated in the Readme.txt of the OC4J 10.1.3 installation:

    export JAVA_HOME
    export ORAENV_ASK

    . oraenv

  2. Start OC4J using the script:

    cd /u01/app/oracle/product/10.1.3/oc4jdb_1/bin
    nohup oc4j -start &

  3. Access the Application Server Control and it will work.
          If the terminal is closed, at this moment the Application Control is unavailable, and results in an error.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms