[jboss-user] [JBoss Web Services] - CXF client AS7 classloader

Michele Balistreri do-not-reply at jboss.com
Mon Jul 18 06:23:38 EDT 2011


Michele Balistreri [http://community.jboss.org/people/michele.balistreri] created the discussion

"CXF client AS7 classloader"

To view the discussion, visit: http://community.jboss.org/message/615796#615796

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/615796#615796]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110718/cb457553/attachment.html 


More information about the jboss-user mailing list