3 Replies Latest reply on Nov 20, 2011 12:14 PM by Julien Kronegg

    CXF client AS7 classloader

    Michele Balistreri Newbie

      Hello, I have an EJB which uses the @WebServiceRef annotation to lookup a webservice client (subclass of Service). I have already read the FAQ, and added "<module name="org.jboss.ws.cxf.jbossws-cxf-client" services="export" />" to the dependencies of the subdeployment containing the EJB in the jboss-deployment-structure.xml. I have tried also services="import" but this makes no difference.

       

      During deployment on JBoss AS 7, configured with standalone-preview.xml, I get the following error:

       

      Failed to start service

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)

                at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

                at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]

      Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/stack/cxf/client/serviceref/CXFServiceObjectFactoryJAXWS

                at org.jboss.as.webservices.deployers.WebServiceRefAnnotationParsingProcessor$WebServiceRefValueSource.getValue(WebServiceRefAnnotationParsingProcessor.java:256)

                at org.jboss.as.naming.ValueManagedReferenceFactory$1.getInstance(ValueManagedReferenceFactory.java:63)

                at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:64)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.as.ee.component.ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptor.java:53)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:67)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

                at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)

                at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:151)

                at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:76)

                at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:110)

                at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:123)

                at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

       

      The same application, of course, works fine on JBoss AS 6