oc4j plugin [message #197990] |
Wed, 08 August 2007 19:02 |
Eclipse User |
|
|
|
Originally posted by: bob.bucy.gmail.com
I am running Windows XP, Stand-alone OC4J 10.1.3.3.0, Eclipse 3.3, WTP 2.0
with the included oc4j plugin. I am having an issue working with this
plugin in terms of deploying an EAR project consisting of an ejb and war.
Upon initially adding the application to the oc4j server, everything is
fine. I can access the application via internet explorer. But, if I
attempt to re-sync the application on the server (e.g. re-deploy), I take
a plug-in error saying ".....unable to find/read
META-INF/application.xml". Further research shows the OC4J log showing the
following error.
007-08-01 11:16:14.786 NOTIFICATION Application Deployer for J2EEEval-ear
FAILED.
07/08/01 11:16:14 SEVERE: ApplicationDeployer.removeFiles ERROR: Unable to
remove appDir D:\Java\ocj4_101330\j2ee\home\applications\J2EEEval-ear :
Unable to remove
D:\Java\ocj4_101330\j2ee\home\applications\J2EEEval-earjava. io.IOException:
Unable to remove D:\Java\ocj4_101330\j2ee\home\applications\J2EEEval-ear
at oracle.oc4j.util.FileUtils.recursiveRemove(FileUtils.java:25 8)
It looks like after the application has been deployed via eclipse, when
you want to re-deploy, it first undeploys the existing application but
leaves the ejb jar in the directory in a locked state; thus, the deploy
fails.
I have played around a-bit with the plug-in xml file (e.g.
eclipse\plugins\org.eclipse.jst.server.generic.oc4j_1.5.100. v20070608\buildfiles\oracle.10.1.3.xml).
After the initial deployment, I changed the deploy.j2ee.ear target to
redeploy instead of "deploy" which seems to allow me to re-sync without
error.
<target name="deploy.j2ee.ear" depends="check.skip.ear.deploy"
unless="skip.deploy">
<antcall target="package.module.ear"/>
<oracle:redeploy deployerUri="${deployer.uri}"
userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
file="${server.publish.dir}/${module.name}.ear"
deploymentName="${module.name}"
bindAllWebApps="${oc4j.bind.website}"/>
</target>
Does anyone have any ideas (e.g. is it my environment, known bug, work
around, etc.).
|
|
|
Powered by
FUDForum. Page generated in 0.11776 seconds