ModuleNotFoundException:无法在Jboss EAP 7上部署war

时间:2018-06-11 05:52:20

标签: war jboss-eap-7

安装了jBoss EAP 7.0并尝试部署.war文件,但收到以下错误。我试图搜索错误,但未能理解有关它的说明。

03:13:23,229 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.module.service."deployment.MMSBackOffice.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.MMSBackOffice.war".main: WFLYSRV0179: Failed to load module: deployment.MMSBackOffice.war:main
        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.modules.ModuleNotFoundException: javax.enterprise.deploy.api:main
        at org.jboss.modules.Module.addPaths(Module.java:1092)
        at org.jboss.modules.Module.link(Module.java:1448)
        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1476)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)
    ... 5 more

1 个答案:

答案 0 :(得分:0)

尝试明确在jboss-deployment-structure.xml个依赖关系中添加此模块并将其放入战争WEB-INF中,然后再次尝试此操作。