Wildfly 8.2.0 - 模块org.hibernate.core:从本地模块加载器找不到main

时间:2015-01-16 11:47:26

标签: java hibernate jboss wildfly wildfly-8

当我尝试使用gradle将项目部署到一个独立的wildfly服务器时,服务器会抛出ModuleNotFoundException异常。

2015-01-16 12:03:49,111 TRACE [org.jboss.modules] (MSC service thread 1-7) Locally loading module org.hibernate.core:main from local module loader @2471cca7 (finder: local module finder @5fe
5c6f (roots: /home/caco/IdeaProjects/wildfly/wildfly-8.2.0.Final/libexec/modules,/home/caco/IdeaProjects/wildfly/wildfly-8.2.0.Final/libexec/modules/system/layers/base))
2015-01-16 12:03:49,111 TRACE [org.jboss.modules] (MSC service thread 1-7) Module org.hibernate.core:main not found from local module loader @2471cca7 (finder: local module finder @5fe5c6f (
roots: /home/caco/IdeaProjects/wildfly/wildfly-8.2.0.Final/libexec/modules,/home/caco/IdeaProjects/wildfly/wildfly-8.2.0.Final/libexec/modules/system/layers/base))

2015-01-16 12:03:49,112 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.module.service."deployment.logicshop-1.0.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.logicshop-1.0.war".main: JBAS018759: Failed to load module: deployment.logicshop-1.0.war:main
    at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]
    Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.core:main
    at org.jboss.modules.Module.addPaths(Module.java:1050) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.Module.link(Module.java:1406) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.Module.relinkIfNecessary(Module.java:1434) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:242) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
    ... 5 more

2015-01-16 12:03:49,151 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "logicshop-1.0.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.logicshop-1.0.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.logicshop-1.0.war\".main: JBAS018759: Failed to load module: deployment.logicshop-1.0.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.core:main"}}

文件系统中存在所需的hibernate-core

# cd modules/system/layers/base/org/hibernate/main/
hibernate-core-4.3.7.Final.jar           hibernate-envers-4.3.7.Final.jar         jipijapa-hibernate4-3-1.0.1.Final.jar    
hibernate-entitymanager-4.3.7.Final.jar  hibernate-infinispan-4.3.7.Final.jar     module.xml

最佳起点是什么,搜索项目或野生动物配置错误的位置?

1 个答案:

答案 0 :(得分:0)

WildFly中的模块称为org.hibernate。您的应用程序正在尝试导入不存在的模块org.hibernate.core