Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Want to enable classloader logging on 10.1.3

523087Jul 26 2006 — edited Jul 28 2006
Hello,

To troubleshoot some classloader problems I would like to activate logging for OC4J running within a 10.1.3 OAS. According to the documentation[1], to activate logging:

"In an Oracle Application Server configuration, system properties are set in the <data> element where the id attribute is "java-options" in the opmn.xml file for the OC4J instance."

But I am unsure which opmn.xml file the documentation is referring to:

C:\10.1.3\OracleAS_1\j2ee\oc4j_opmn.xml
or
C:\10.1.3\OracleAS_1\opmn\conf\opmn.xml

The former appears to be a subset of the latter--which one do I need to alter and why are there two files?

Thanks,
Glen

[1] http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#sthref138

Comments

523087
Got logging activated. It was the C:\10.1.3\OracleAS_1\opmn\conf\opmn.xml file that needed to be updated.

To activate logging, I added "-Dclass.load.trace=class+loader -Dclass.load.log.file=C:\oracle\10.1.3\OracleAS_1\logs\classloadlog.txt -Dclass.load.log.level=all" to the start-parameters portion under the OC4J component portion of the opmn.xml file as below:

<ias-component id="OC4J">
<process-type id="home" module-id="OC4J" status="enabled">
<module-data>
<category id="start-parameters">
<data id="java-options" value="-Xrs -server -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Dclass.load.trace=class+loader -Dclass.load.log.file=C:\oracle\10.1.3\OracleAS_1\logs\classloadlog.txt -Dclass.load.log.level=all"/>
</category>
....

Glen
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 25 2006
Added on Jul 26 2006
1 comment
2,746 views