It appears from the oc4j documentation that deploying war files is allowed for development purposes but not for deployment in a production environment. And deploying a war file is a manual process that cannot use the oc4j autodeploy features. Accordingly, I took the following steps to enable the deploy/redeploy functions of MyEclipse to work (ME 3.8.4, Eclipse 3.0.1; oc4j 9.0.4).
1. Create an Enterprise Application wrapper for the web application with MyEclipse. ME allows a new Enterprise Application to include an existing web application so this was an easy step. The purpose is to allow MyEclipse to autogenerate an ear file. For this web application, no EJB capabilities were needed or added.
2. Edit the oc4j <J2EE>/home/config/server.xml to include an <application> element. An example:
<application name=”version_tracker” path=”../application-autodeploy/version_tracker.ear” auto-start=”true”>
<init-param>
<param-name>debug_mode</param-name>
<param-value>true</param-value>
</init-param>
</application>
MyEclipse copies the ear to the ../application-autodeploy path for deployment with 9iAS. (and 10gAS).
3. Edit http-web-site.xml file, also in <J2EE>/home/config and add a <web-app> element. Example:
<web-app application=”version_tracker” name=”tracker3″ root=”/tracker” />
In this case “tracker3” is the name of the web application in Eclipse. “tracker” is the context used when deployed.
4. Use the Deploy/Redeploy capabilities of MyEclipse. Sometimes I need to restart oc4j, but not often.
Hope this helps.
Brad