当我尝试运行 weblogic server 12c 时,它抛出此错误并且无法启动。
<Apr 16, 2013 2:42:57 PM IST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:acsportal@acs-portal.war, Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
<Apr 16, 2013 2:42:58 PM IST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "acsportal" due to error weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal
weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:732)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
Truncated. see log file for complete stacktrace
Caused By: weblogic.application.ModuleException: Context path '' is already in use by the module: / application: acs-portal
at weblogic.servlet.internal.WebAppModule.validateContextPath(WebAppModule.java:1392)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:1238)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:723)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:188)
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:83)
Truncated. see log file for complete stacktrace
出现这个错误后,此时服务器挂了
<Apr 16, 2013 2:43:58 PM IST> <Warning> <WorkManager> <BEA-002919> <Unable to find a Work Manager with name wm/ProvisionWorkManager. Dispatch policy wm/ProvisionWorkManager will map to the default Work Manager for the application acs-portal>
并且不在这一行之后开始 请帮助解决此错误。
最佳答案
- 停止 weblogic 服务器
- 从 weblogic 的“autodeploy”文件夹中删除所有 war 文件。
- 然后再次启动weblogic服务器
- 之后在浏览器中输入 URL“http://localhost:7001/console/”
- 转到“配置应用程序”链接
- 然后选择以前的项目并停止 -> 工作完成时
关于java - weblogic.application.ModuleException : Context path '' is already in use by the module:/application:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16033609/