6 Replies Latest reply on Mar 29, 2013 3:23 AM by bai li

    jboss as7 run restful web service error

    bai li Newbie

      Works in tomcat, deploy test through JBoss AS 7 call web service failed the log:

      Caused by: java.lang.NoClassDefFoundError: org/apache/cxf/ws/policy/builder/jaxb/JaxbAssertionBuilder

                at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_13]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:621) [:1.6.0_13]

                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [:1.6.0_13]

                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)

                ... 44 more

      Caused by: java.lang.ClassNotFoundException: org.apache.cxf.ws.policy.builder.jaxb.JaxbAssertionBuilder from [Module "deployment.HubTest.war:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)

                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) [:1.6.0_13]

                ... 48 more

       

       

      10:53:09,503 WARN  [org.jboss.modules] (http--127.0.0.1-8080-1) Failed to define class org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder in Module "deployment.HubTest.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/cxf/transport/http/policy/HTTPClientAssertionBuilder (Module "deployment.HubTest.war:main" from Service Module Loader)