Java 如何解决异常“weblogic.application.ModuleException: Context path '' is already in use by the module:/application”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23357350/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 22:10:55  来源:igfitidea点击:

How to resolve exception "weblogic.application.ModuleException: Context path '' is already in use by the module: / application"?

javaejbweblogic

提问by Developer

I have gone through the Question: [weblogic.application.ModuleException: Context path '' is already in use by the module: / application:and followed as answer of the question says; but still getting the same exception:

我已经完成了问题:[ weblogic.application.ModuleException: Context path '' is already in use by the module: / application:并按照问题的答案进行操作;但仍然得到相同的异常:

**> Deployment failed. The message was:  

weblogic.application.ModuleException: Context path '/socketss-war' is already in use by the module: /Socketss-war application: Socketss D:\NetBeansProjects\Socketss\Socketss-war\nbproject\build-impl.xml:1056: The module has not been deployed. See the server log for details.**

weblogic.application.ModuleException:上下文路径“/socketss-war”已被模块使用:/Socketss-war 应用程序:Socketss D:\NetBeansProjects\Socketss\Socketss-war\nbproject\build-impl.xml:1056:该模块尚未部署。有关详细信息,请参阅服务器日志。**

Any guidance or suggestion would be highly appreciable.
Thank you!

任何指导或建议将是非常可观的。
谢谢!

回答by Gaurav

ModualException come due to inproper Bulid. Go through step by step.

ModualException 来自不正确的 Bulid。一步一步走过来。

  • Update project
  • Restart your eclipse
  • Remove project from server
  • clean server and redeploy your project
  • 更新项目
  • 重启你的日食
  • 从服务器中删除项目
  • 清理服务器并重新部署您的项目

Now publish it i hope now it will work

现在发布它,我希望现在它会起作用

回答by 99Sono

Yup. Try to deploy from Netbeans.

是的。尝试从 Netbeans 部署。

The Weblogic eclipse plugin is, in my experience, the worst deployment plugin I've ever seen. If you are using a patched weblogic - such as 12.1.2 with Patch Set Update 6 - your deployment from eclipse might miraculously not work with such an error.

根据我的经验,Weblogic eclipse 插件是我见过的最糟糕的部署插件。如果您使用打过补丁的 weblogic - 例如带有补丁集更新 6 的 12.1.2 - 您从 eclipse 的部署可能奇迹般地不会出现这样的错误。

If you are able to deploy the WAR file without IDE by going to the deploy view, I recommend that you try using Netbeans to deploy and see how it goes.

如果您可以通过进入部署视图在没有 IDE 的情况下部署 WAR 文件,我建议您尝试使用 Netbeans 进行部署,看看它是如何进行的。

Notice as well that the outcome of trying to deploy from eclipse as exploded war or as virtual application is not the same. Typically both do not work with different exceptions, depending on the patches you are using.

还要注意,尝试从 Eclipse 部署为爆炸War或虚拟应用程序的结果是不同的。通常,两者都不会在不同的例外情况下工作,具体取决于您使用的补丁。

In my case, I have two local installations of weblogic 12.1.2. One with the patch set update and another one without. From eclipse, It is only possible to deploy to the one without. From Netbeans, deployment works regardless of the instance.

就我而言,我有两个 weblogic 12.1.2 的本地安装。一个有补丁集更新,另一个没有。从 eclipse 中,只能部署到没有的。在 Netbeans 中,部署工作与实例无关。