Q: How can I force a specific log4j.properties file?

A: In some cases the log4j.properties may be embeded in the Connector's JAR file, or there may be several log4j.properties in the server.

To force a specific log4j.properties file for debugging purposes, start the OC4J as follows:
  • java -Dlog4j.configuration=file:///<filename> -jar oc4j.jar
For example to load the c:\log4.properties:
  • java -Dlog4j.configuration=file:///c:/log4j.properties -jar oc4j.jar