how to deploy an app to a new oc4j-instance on OAS 10.1.3.1

To deploy a java/ADF app on an Oracle Application Server (10.1.3.1) and handle the datasources from there:

After generating the ear and war files from within JDeveloper…

  1. Login to OAS
  2. Cluster Topology > OC4J-instance > Administration > JDBC Resources
  3. Firstly create the Connection Pools:
    • Connection Pools > Create (for “native” pool)
    • Application: Default
    • select “New Connection Pool“:
      • Name: jdev-connection-native-appname
      • Connection Factory Class: oracle.jdbc.pool.OracleDataSource
      • JDBC URL: jdbc:oracle:thin:@//192.168.10.230:1521/serviceID
      • provide Username and Password
      • Test Connection
      • (more…)

Reset local OC4J in JDeveloper 10

If you get an error message trying to start JMS-Server in JDeveloper 10.1.3.5 like:

(SEVERE) Failed to set the internal configuration of the OC4J JMS Server with:
XMLJMSServerConfig[file:/C:/oc4j_path/j2ee/home/config/jms.xml]

  1. Firstly check whether the port (default 9127) is not used/locked by other app.
  2. Try deleting the contents in your local OC4J path:
    <JDEV_PATH>\jdev\system\oracle.j2ee.10.1.3.43.6\embedded-oc4j\persistence\
    or
    <JDEV_PATH>\j2ee\home\persistence\

    When OC4J will start again, it will reset the local configurations and let JMS-Server start as normal.

 

credit: forums.oracle.com