Using Oracle Enterprise Manager, here's the magic recipe:
- Go into the Oracle Enterprise Manager Web interface.
- Choose the appropriate server instance.
- Choose "Create OC4J Instance".
- Give the instance a name, click "Create" then "OK".
- Back in the server's control panel, choose the new OC4J instance.
- Go into the "Server Properties".
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
- Click "Apply" after adjusting the amount of memory accordingly (I've used 512M in this example).
- If the server is running (for some reason), choose "Restart" then "OK".
- Choose "Deploy WAR file".
- For "Web Application", browse to the .war file that you prepared earlier.
- Enter an appropriate "Application Name".
- Choose a sub-URL for your application and write it into the "Map to URL" field. For example: /myapp
- Click "Deploy" then "OK".
- 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