添加外部罐子NoClassDefFoundError

时间:2014-10-23 11:42:16

标签: java jboss noclassdeffounderror

将外部jar添加到项目时出现问题。我正在使用gradle来构建我的项目并在JBoss上部署多个战争。我使用"dependencies { compile libraries }"添加了这些外部罐子,所以这些罐子都在战争项目中。

我的项目构建成功但是当我调用web服务时出现错误:

ERROR [org.jboss.as.webservices.invocation.InvocationHandlerJAXWS] (http-localhost/127.0.0.1:8080-1) JBAS015594: Method invocation failed with exception: Could not initialize class org.apache.xml.security.Init: java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.Init.

从外部jar文件中的类调用此org.apache.xml.security.Init类。

非常感谢您的帮助。

0 个答案:

没有答案
相关问题