Using Oracle Enterprise Manager, here's the magic recipe:

  1. Go into the Oracle Enterprise Manager Web interface.
  2. Choose the appropriate server instance.
  3. Choose "Create OC4J Instance".
  4. Give the instance a name, click "Create" then "OK".
  5. Back in the server's control panel, choose the new OC4J instance.
  6. Go into the "Server Properties".
  7. Under "Command Line Options", for "Java Options" enter the following: -Xmx512M -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Dorg.xml.sax.driver=oracle.xml.parser.v2.SAXParser
  8. Click "Apply" after adjusting the amount of memory accordingly (I've used 512M in this example).
  9. If the server is running (for some reason), choose "Restart" then "OK".
  10. Choose "Deploy WAR file".
  11. For "Web Application", browse to the .war file that you prepared earlier.
  12. Enter an appropriate "Application Name".
  13. Choose a sub-URL for your application and write it into the "Map to URL" field. For example: /myapp
  14. Click "Deploy" then "OK".
  15. If the server is not running, click "Start" then "OK".

Typically, the Oracle stuff runs under port 7778, so you would navigate to a URL like this to try out the newly-deployed application: http://myserver:7778/myapp

Good luck!

  • No labels