如何在WildFly 9.0.1中修复模块未找到的异常

时间:2015-09-18 08:09:55

标签: mysql wildfly

我正在尝试启动WildFly 9.0.1最终版本时遇到此异常。我的WAR文件只包含一个基于Spring Framework构建的应用程序。您可以在下面找到我的服务器日志文件。

12:53:57,109 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service
jboss.module.service."deployment.SpringExample.war".main:org.jboss.msc.service.StartException in service
jboss.module.service."deployment.SpringExample.war".main: WFLYSRV0179:

Failed to load module: deployment.SpringExample.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(Unknown Source) at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at 
java.lang.Thread.run(Unknown Source) Caused by: 
org.jboss.modules.ModuleNotFoundException: com.mysql:main at 
org.jboss.modules.Module.addPaths(Module.java:1042) at 
org.jboss.modules.Module.link(Module.java:1398) at 
org.jboss.modules.Module.relinkIfNecessary(Module.java:1426) at 
org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:238) at 
org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadServic
e.java:68) ... 5 more 12:53:57,115 ERROR 

[org.jboss.as.controller.management-operation] (DeploymentScanner-threads 
- 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" 
=> "SpringExample.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.SpringExample.war\".main" => "org.jboss.msc.service.StartException in service

 jboss.module.service.\"deployment.SpringExample.war\".main: WFLYSRV0179: 
Failed to load module: deployment.SpringExample.war:main Caused by: org.jboss.modules.ModuleNotFoundException: com.mysql:main"}} 12:53:57,199 
INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "SpringExample.war" (runtime-name : "SpringExample.war") 12:53:57,200 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report 
WFLYCTL0185: Newly corrected services: service jboss.module.service."deployment.SpringExample.war".main (new available) WFLYCTL0186: Services which failed to start: service 
jboss.module.service."deployment.SpringExample.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.SpringExample.war".main: WFLYSRV0179: 
Failed to load module: deployment.SpringExample.war:main 12:54:57,515 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment SpringExample.war (runtime-name: SpringExample.war) in 51ms 12:54:57,516 INFO 
[org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "SpringExample.war" (runtime-name: "SpringExample.war") 12:54:58,966 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service 
jboss.module.service."deployment.SpringExample.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.SpringExample.war".main: WFLYSRV0179: Failed to load module: deployment.SpringExample.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(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.jboss.modules.ModuleNotFoundException: com.mysql:main at org.jboss.modules.Module.addPaths(Module.java:1042) at org.jboss.modules.Module.link(Module.java:1398) at org.jboss.modules.Module.relinkIfNecessary(Module.java:1426) at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:238) at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68) ... 5 more 12:54:58,969 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.SpringExample.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.SpringExample.war\".main: WFLYSRV0179: Failed to load module: deployment.SpringExample.war:main Caused by: org.jboss.modules.ModuleNotFoundException: com.mysql:main"}} 12:54:59,002 
INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0016: Replaced deployment "SpringExample.war" with deployment "SpringExample.war" 12:54:59,002 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report WFLYCTL0184: New missing/unsatisfied dependencies: service 
jboss.module.service."deployment.SpringExample.war".main (unavailable) dependents: [service jboss.deployment.unit."SpringExample.war".FIRST_MODULE_USE] WFLYCTL0186: Services which failed to start: service 
jboss.module.service."deployment.SpringExample.war".main service 
jboss.module.service."deployment.SpringExample.war".main: org.jboss.msc.service.StartException in service 
jboss.module.service."deployment.SpringExample.war".main: WFLYSRV0179: Failed to load module: deployment.SpringExample.war:main

1 个答案:

答案 0 :(得分:0)

首先,您必须在documentation上查看WildFly的模块概念。此外,defining mySQL module link可能会有所帮助。