使用 Eclipse +OC4J 的部署问题

发布于 2024-10-05 16:41:55 字数 3351 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文