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: 10.1.3.0.0 to 10.1.3.5.0 - Release: AS10gR3 to AS10gR3
Information in this document applies to any platform.
***Checked for relevance on 25-Feb-2012**

Symptoms

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.

ERROR
06/09/27 13:27:54.881 ascontrol: SubmitButtonBean, localName='submitButton': oracle.cabo.style:
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
'file:/u01/app/oracle/product/10.1.3/oc4jdb_1/j2ee/home/applications/ascontrol/ascontrol/online_help
/oc_4jstand/oc_4jstand_help.jar!/oc4j_admin/security_providers/oc_4jstand_about_cleartext_indirect_p
asswords.html'
06/09/28 11:57:54.885 ascontrol: 10.1.3.0.0 Stopped
06/09/28 12:02:16.541 10.1.3.0.0 Started
06/09/28 12:02:26.64 ascontrol: 10.1.3.0.0 Started
06/09/28 12:02:39.295 ascontrol: SubmitButtonBean, localName='submitButton': oracle.cabo.style:
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(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at oracle.cabo.style.util.GraphicsUtils$GraphicsLoader.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)

STEPS TO REPRODUCE THE PROBLEM
----------------------------------------------
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:

    JAVA_HOME=/u01/app/oracle/product/10.2.0/db_1/jdk
    export JAVA_HOME
    ORAENV_ASK=NO
    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.

Cause

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