部署到Wildfly 8.2.0

时间:2015-03-25 13:16:51

标签: java wildfly jboss-weld weld

我试图将GWT Errai应用程序部署到Jboss Wildfly 8.2.0 Final,但是,我遇到了以下部署错误。

Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.ApplicationContextFacade from [Module "deployment.app.ui-1.8.2.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
    ... 13 more

2015-03-25 13:05:39,466 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "app.ui-1.8.2.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./: Failed to start service
    Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContextFacade
    Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.ApplicationContextFacade from [Module \"deployment.app.ui-1.8.2.war:main\" from Service Module Loader]"}}
2015-03-25 13:05:39,468 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "app.ui-1.8.2.war" was rolled back with the following failure message: 
{"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./: Failed to start service
    Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContextFacade
    Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.ApplicationContextFacade from [Module \"deployment.app.ui-1.8.2.war:main\" from Service Module Loader]"}}

好像Weld错误地将应用程序服务器检测为Tomcat。

关于可能出错的任何想法?

2 个答案:

答案 0 :(得分:1)

您不应将Weld部署为应用程序的一部分。它已经是应用程序服务器的一部分。您应该从依赖项中排除Weld工件,尤其是weld-servlet。

答案 1 :(得分:0)

这是一篇较晚的帖子,但您的项目需要org.apache.catalina.core.ApplicationContextFacade无法找到的课程ClassLoader

我对GWT不太熟悉所以我对该领域的了解毫无用处。您可以在CLASSPATH或WEB-INF/lib文件夹中添加包含上述类的JAR,或者找到在Wildfly上部署GWT应用程序的最佳方法。