OC4J Configuration

From Skyway Wiki

Jump to: navigation, search

OC4J 10

  • WAR Deploy
    • Container: Oracle
    • Transactions: Container
    • Persistence: Container
    • Must add contents of data-sources.xml to {OC4J_HOME}/j2ee/home/config/data-sources.xml
  • EAR Deploy
    • Container: Oracle
    • Transactions: Container
    • Persistence: Container


Important Note: When installing OC4J be sure to go to {OC4J_HOME}//j2ee/home/config and check the server.xml file for the <java-compiler> settings. Even if you have a JAVA_HOME set, OC4J will not pickup the location of javac automatically. ensure that the bindir attribute is pointing to the bin directory in your JDK install. See the example below.

   <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" 
   bindir="C:\Program Files\Java\jdk1.5.0_15\bin" extdirs="C:\Program Files\Java\jdk1.5.0_15\jre\lib\ext" />

If OC4J cannot find a compiler, then you will get an error every time you attempt to access a JSP on the server. Sometimes this manifests as 500 error returned from OC4J.

EAR Deploy Note: When deploying as an EAR project, you must copy all .properties files that reside in WEB-INF/classes to the resources folder of the project if they are to be accessed by any compiled resource not in the web-layer.

Personal tools