我在Eclipse中使用OC4J。
我也在使用Eclipse部署到OC4J服务器。
不幸的是,部署一旦成功,一旦给我以下错误(这是一种无聊的行为):
10/11/30 12:00:47 WARNING: ApplicationUnDeployer.removeFiles WARNING: Unable to remove appDir D:\sources\jdv10-4\j2ee\home\applications\MyApp : Unable to remove D:\sources\jdv10-4\j2ee\home\applications\MyAppjava.io.IOException: Unable to remove D:\sources\jdv10-4\j2ee\home\applications\MyApp
at oracle.oc4j.util.FileUtils.recursiveRemove(FileUtils.java:262)
at oracle.oc4j.admin.internal.ApplicationUnDeployer.removeFiles(ApplicationUnDeployer.java:194)
at oracle.oc4j.admin.internal.ApplicationUnDeployer.doUndeploy(ApplicationUnDeployer.java:163)
at oracle.oc4j.admin.internal.UnDeployerBase.execute(UnDeployerBase.java:91)
at oracle.oc4j.admin.internal.UnDeployerBase.execute(UnDeployerBase.java:72)
at oracle.oc4j.admin.internal.ApplicationDeployer.undeployPrevious(ApplicationDeployer.java:282)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:177)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
2010-11-30 12:00:47.149 NOTIFICATION Application UnDeployer for MyApp COMPLETES.
2010-11-30 12:00:47.164 NOTIFICATION Initialize D:\sources\jdv10-4\j2ee\home\applications\MyApp.ear begins...
10/11/30 12:00:47 oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Unable to find/read file META-INF/application.xml in D:\sources\jdv10-4\j2ee\home\applications\MyApp (META-INF/application.xml)
10/11/30 12:00:47 at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:420)
10/11/30 12:00:47 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:190)
10/11/30 12:00:47 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
10/11/30 12:00:47 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
10/11/30 12:00:47 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
10/11/30 12:00:47 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
10/11/30 12:00:47 at java.lang.Thread.run(Thread.java:595)
10/11/30 12:00:47 Caused by: java.lang.InstantiationException: Unable to find/read file META-INF/application.xml in D:\sources\jdv10-4\j2ee\home\applications\MyApp (META-INF/application.xml)
10/11/30 12:00:47 at com.evermind.naming.ContextUtils.readFromContext(ContextUtils.java:560)
10/11/30 12:00:47 at com.evermind.server.J2EEComponent.init(J2EEComponent.java:146)
10/11/30 12:00:47 at com.evermind.server.deployment.EnterpriseArchive.<init>(EnterpriseArchive.java:265)
10/11/30 12:00:47 at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:415)
10/11/30 12:00:47 ... 6 more
2010-11-30 12:00:47.164 NOTIFICATION Application Deployer for MyApp FAILED.