Title
"System.out" not being logged in OAS 10g (10.1.3)

Date
2007-10-31

Summary
When a JSP has a System.out statement, example:
    System.out.println("hello world");

This is not being logged anywhere under Oracle Application Server 10g (10.1.3.x). The container must be manually configured to log these statements.

Details
1. Resolution (via console):
    a. Log in to the EM Console.
    b. Navigate to the container name (e.g., home).
    c. Click on Administration
    d. Click on Server Properties
    e. Add the following under Start-parameters: OC4J Options; for example:
        -out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log
    f. Restart the container.

2. Resolution (via manual configuration):
    a. Shutdown opmn via opmnctl stopall.
    b. Edit the opmn.xml file and add the following entry to the start-parameters section of the container:
        <data id="oc4j-options" value="-out c:\oracle\product\10.1.3\as10g\j2ee\home\log\ws_default_group_1\sysout.log"/>
    c. Restart opmn via opmnctl startall.

3. The output should appear in the following logs:
%ORACLE_HOME%\j2ee\home\log\ws_default_group_1\sysout.log

Applicable Versions
Oracle Application Server 10g (10.1.3)
Ahmed Aboulnaga

.com .com