引起:java.lang.ClassNotFoundException:org.opensaml.xml.validation.ValidatingXMLObject

时间:2013-10-24 06:50:08

标签: java java-ee axis2 jboss6.x

我在我耳边使用了axis2.war,我将所有的jar包装在APP-INF中,并从axis2 / META-INT / Manifest.in [Class-Path]中指出它们。我正在使用ws security。

当我从axis2客户端请求时,我收到以下错误。

  
    

12:55:05,359 INFO [STDOUT] [ERROR]     org / opensaml / xml / validation / ValidatingXMLObject 12:55:05,359 INFO     [STDOUT] java.lang.NoClassDefFoundError:     org / opensaml / xml / validation / ValidatingXMLObject 12:55:05,360 INFO     java.lang.ClassLoader.defineClass1 [Native Method]中的[STDOUT]     12:55:05,360 INFO [STDOUT] at     java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)     12:55:05,360 INFO [STDOUT] at     java.lang.ClassLoader.defineClass(ClassLoader.java:615)12:55:05,360     INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader.access $ 200(BaseClassLoader.java:52)     12:55:05,360 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader $ 2.run(BaseClassLoader.java:650)     12:55:05,360 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader $ 2.run(BaseClassLoader.java:609)     12:55:05,360 INFO [STDOUT] at     java.security.AccessController.doPrivileged(本机方法)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132)     12:55:05,361 INFO [STDOUT] at     org.jboss.classloader.spi.base.ClassLoadingTask $ ThreadTask.run(ClassLoadingTask.java:461)     12:55:05,362 INFO [STDOUT] at     org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262)     12:55:05,362 INFO [STDOUT] at     org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161)     12:55:05,362 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:280)     12:55:05,362 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1172)     12:55:05,362 INFO [STDOUT] at     org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)

  
     

12:55:05,362 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)   12:55:05,362 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)   12:55:05,363 INFO [STDOUT] at   java.lang.ClassLoader.loadClass(ClassLoader.java:247)12:55:05,365   INFO [STDOUT] at java.lang.ClassLoader.defineClass1(Native   方法)12:55:05,366 INFO [STDOUT] at   java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)   12:55:05,367 INFO [STDOUT] at   java.lang.ClassLoader.defineClass(ClassLoader.java:615)12:55:05,369   INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.access $ 200(BaseClassLoader.java:52)   12:55:05,370 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader $ 2.run(BaseClassLoader.java:650)   12:55:05,372 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader $ 2.run(BaseClassLoader.java:609)   12:55:05,373 INFO [STDOUT] at   java.security.AccessController.doPrivileged(本机方法)   12:55:05,374 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608)   12:55:05,375 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585)   12:55:05,376 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156)   12:55:05,377 INFO [STDOUT] at   org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141)   12:55:05,378 INFO [STDOUT] at   org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132)   12:55:05,379 INFO [STDOUT] at   org.jboss.classloader.spi.base.ClassLoadingTask $ ThreadTask.run(ClassLoadingTask.java:461)   12:55:05,380 INFO [STDOUT] at   org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262)   12:55:05,381 INFO [STDOUT] at   org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161)   12:55:05,382 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:280)   12:55:05,384 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1172)   12:55:05,386 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)   12:55:05,387 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)   12:55:05,388 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)   12:55:05,389 INFO [STDOUT] at   java.lang.ClassLoader.loadClass(ClassLoader.java:247)12:55:05,390   INFO [STDOUT] at   org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:89)   12:55:05,391 INFO [STDOUT] at   org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)   12:55:05,392 INFO [STDOUT] at   org.apache.axis2.engine.Phase.invoke(Phase.java:313)12:55:05,393 INFO   [STDOUT] at   org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)   12:55:05,394 INFO [STDOUT] at   org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)   12:55:05,395 INFO [STDOUT] at   org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)   12:55:05,396 INFO [STDOUT] at   org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)   12:55:05,397 INFO [STDOUT] at   javax.servlet.http.HttpServlet.service(HttpServlet.java:754)   12:55:05,398 INFO [STDOUT] at   javax.servlet.http.HttpServlet.service(HttpServlet.java:847)   12:55:05,399 INFO [STDOUT] at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)   12:55:05,401 INFO [STDOUT] at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)   12:55:05,403 INFO [STDOUT] at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)   12:55:05,404 INFO [STDOUT] at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)   12:55:05,405 INFO [STDOUT] at   org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)   12:55:05,406 INFO [STDOUT] at   org.jboss.modcluster.catalina.CatalinaContext $ RequestListenerValve.event(CatalinaContext.java:285)   12:55:05,407 INFO [STDOUT] at   org.jboss.modcluster.catalina.CatalinaContext $ RequestListenerValve.invoke(CatalinaContext.java:261)   12:55:05,408 INFO [STDOUT] at   org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)   12:55:05,409 INFO [STDOUT] at   org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)   12:55:05,410 INFO [STDOUT] at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)   12:55:05,411 INFO [STDOUT] at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)   12:55:05,412 INFO [STDOUT] at   org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)   12:55:05,413 INFO [STDOUT] at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)   12:55:05,415 INFO [STDOUT] at   org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)   12:55:05,416 INFO [STDOUT] at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)   12:55:05,417 INFO [STDOUT] at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)   12:55:05,419 INFO [STDOUT] at   org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:654)   12:55:05,420 INFO [STDOUT] at   org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:951)   12:55:05,422 INFO [STDOUT] at   java.lang.Thread.run(Thread.java:662)12:55:05,423 INFO [STDOUT]   引起:java.lang.ClassNotFoundException:   org.opensaml.xml.validation.ValidatingXMLObject 12:55:05,424 INFO   [STDOUT] at java.net.URLClassLoader $ 1.run(URLClassLoader.java:202)   12:55:05,425 INFO [STDOUT] at   java.security.AccessController.doPrivileged(本机方法)   12:55:05,426 INFO [STDOUT] at   java.net.URLClassLoader.findClass(URLClassLoader.java:190)   12:55:05,427 INFO [STDOUT] at   java.lang.ClassLoader.loadClass(ClassLoader.java:306)12:55:05,428   INFO [STDOUT] at   sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:301)   12:55:05,429 INFO [STDOUT] at   java.lang.ClassLoader.loadClass(ClassLoader.java:247)12:55:05,430   java.lang.Class.forName0的INFO [STDOUT](本机方法)   12:55:05,431 INFO [STDOUT] at   java.lang.Class.forName(Class.java:249)12:55:05,432 INFO [STDOUT]
  在   org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:304)   12:55:05,433 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1172)   12:55:05,434 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)   12:55:05,436 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)   12:55:05,438 INFO [STDOUT] at   org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)   12:55:05,439 INFO [STDOUT] at   java.lang.ClassLoader.loadClass(ClassLoader.java:247)12:55:05,440   INFO [STDOUT] ...... 70多个

注意:在-verbose:类log log org.opensaml.xml.validation.ValidatingXMLObject是从xmltooling.jar加载的,我使用的是jboss 6

[从vfs加载org.opensaml.xml.validation.ValidatingXMLObject:/ D:/maven/Server/jboss-6.1.0/server/default/deploy/bpms.ear/APP-INF/lib/xmltooling-1.2 .0.jar /

1 个答案:

答案 0 :(得分:0)

验证是否已正确设置xmltooling.jar的依赖项