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

To deploy a java/ADF app on an Oracle Application Server ( 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:@//
      • 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 like:

(SEVERE) Failed to set the internal configuration of the OC4J JMS Server with:

  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:

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