当前位置: 首页 > 知识库问答 >
问题:

在jboss server 7.0中部署war文件

熊哲圣
2023-03-14

当我尝试在jboss server 7.0中部署war文件时,它显示以下错误。请告知。

异常日志:

    2019-09-22 18:28:22,582 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final-redhat-1
    2019-09-22 18:28:24,904 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final-redhat-1
    2019-09-22 18:28:25,056 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) starting  
    2019-09-22 18:29:14,879 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0058: Additional resource root /C:/jboss-eap-7.0.0/jboss-eap-7.0/bin/content/bancaws.war/WEB-INF/lib/bcpg-jdk15on-1.58.jar added via jboss-deployment-structure.xml does not exist
    2019-09-22 18:29:14,880 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0058: Additional resource root /C:/jboss-eap-7.0.0/jboss-eap-7.0/bin/content/bancaws.war/WEB-INF/lib/bcprov-jdk15on-1.58.jar added via jboss-deployment-structure.xml does not exist
    2019-09-22 18:29:14,884 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0058: Additional resource root /C:/jboss-eap-7.0.0/jboss-eap-7.0/bin/content/bancaws.war/WEB-INF/lib/validation-api-1.1.0.Final.jar added via jboss-deployment-structure.xml does not exist
    2019-09-22 18:29:14,885 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0058: Additional resource root /C:/jboss-eap-7.0.0/jboss-eap-7.0/bin/content/bancaws.war/WEB-INF/lib/spring-webmvc-4.3.17.RELEASE.jar added via jboss-deployment-structure.xml does not exist
    2019-09-22 18:29:14,917 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0059: Class Path entry oraclepki.jar in /C:/jboss-eap-7.0.0/jboss-eap-7.0/bin/content/bancaws.war/WEB-INF/lib/ojdbc8-18.3.jar  does not point to a valid jar for a Class-Path reference.
    2019-09-22 18:29:20,507 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.module.service."deployment.bancaws.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.bancaws.war".main: WFLYSRV0179: Failed to load module: deployment.bancaws.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

    2019-09-22 18:29:20,520 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 58) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "bancaws.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.bancaws.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.bancaws.war\".main: WFLYSRV0179: Failed to load module: deployment.bancaws.war:main
        Caused by: org.jboss.modules.ModuleNotFoundException: javax.enterprise.deploy.api:main"}}
    2019-09-22 18:29:20,554 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 58) WFLYSRV0021: Deploy of deployment "bancaws.war" was rolled back with the following failure message: 
    {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.bancaws.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.bancaws.war\".main: WFLYSRV0179: Failed to load module: deployment.bancaws.war:main
        Caused by: org.jboss.modules.ModuleNotFoundException: javax.enterprise.deploy.api:main"}}
    2019-09-22 18:29:22,207 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment bancaws.war (runtime-name: bancaws.war) in 1656ms
    2019-09-22 18:29:22,208 INFO  [org.jboss.as.controller] (ServerService Thread Pool -- 58) WFLYCTL0183: Service status report
    WFLYCTL0184:    New missing/unsatisfied dependencies:
          service jboss.module.service."deployment.bancaws.war".main (missing) dependents: [service jboss.deployment.unit."bancaws.war".FIRST_MODULE_USE] 
    WFLYCTL0186:   Services which failed to start:      service jboss.module.service."deployment.bancaws.war".main

共有2个答案

白光耀
2023-03-14

模块名“javax.enterprise.deploy.api:main”不正确,它应该类似于“javax.enterprise.api.main”,或者如果您配置了任何自定义模块,请确保该模块位于$JBOSS\u HOME/modules/system/layers/base/javax/enterprise/deploy/api中。

东方飞捷
2023-03-14

尝试以独立完整模式启动jboss。xml使用以下命令。

独立。bat-c standalone-full.xml

 类似资料:
  • 5.使用cmd重新启动tomcat。 “信息:部署web应用程序目录C:\apache-tomcat-7.0.77\webapps\MyProject Jun 07,2017 4:50:19 PM org.apache.catalina.startup.hostconfig deployDirectory信息:web应用程序目录C:\apache-tomcat-7.0.77\webapps\MyP

  • 在Tomcat中手动部署WAR文件 关于如何在internet上的Tomcat中部署war文件,有很多例子,但它只展示了如何在根目录中部署war文件。如果我想让我的应用程序所在的子目录名为“myfolder”,该怎么办。所以我的网址:https://localhost:8080/myfolder/index.html.我需要在webapps中创建一个名为“myfolder”的文件夹,并在那里部署我

  • 我正在尝试使用EC2服务器在Tomcat7中部署Vaadin7文件。我将文件上载到,但当我转到时,它找不到资源。 知道为什么吗? 谢谢!

  • 我已经在archlinux上安装了tomcat,我尝试了tomcat7和Tomcat8。根据包括官方文档在内的多个来源,部署WAR文件就像将其放入webapps文件夹(在我的示例中是/var/lib/tomcat7/webapps)一样容易。WAR文件被分解。但我不知道如何访问我的web应用程序。在localhost:8080上有一个tomcat网页。我还尝试了localhost:8080/nam

  • 问题内容: 我已经将tomcat的webapps目录中的sample.war文件复制了。 我可以访问localhost:8080。 默认情况下,战争的部署是自动进行的-我已经在我的webapps文件夹中检查了提取的文件夹“ sample” 但未提取。为什么未提取war文件。请为此提供解决方案。 问题答案: 从目录中删除该战争文件。然后在您的Web浏览器中打开链接。单击“ Tomcat管理器”, 然

  • 我已经部署了一个war文件mavenproject4-1.0-SNAPSHOT。jboss目录jboss-BASE-DIR\standalone\deployments中的war 我使用maven构建war文件 我通过单击JBOSS-BASE DIR/bin/standalone.bat中的standalone.bat启动服务器 但我有以下错误。 引起原因:java.io.IO异常:无法索引类or