使用 Eclipse +OC4J 的部署问题
我在 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.
I am using OC4J from within Eclipse.
I am deploying to the OC4J server using Eclipse too.
Unfortunately, the deployment once succeed and once give me the following error (which is a boring behavior):
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论