I'm not sure if that will work at all without a BUNCH of classloader magic. Axis2 still uses an ancient version of XmlSchema which would conflict with the one CXF would require.
Dan On Thursday, July 12, 2012 01:15:06 PM tonnyneto wrote: > Hello, > > I'm using CXF DynamicClientFactory to create a dynamic client for a simple > web service. > When I execute the class that invokes the web service (deployed in Axis2) > it works fine. > > After, I need those classes to be deployed in Axis2 and comunicate between > each other (using the cxf dynamic client) by the method invoke. > When I do this, it doesn't work at all. In the moment of the client > creation it shows me this error in the Axis2 console: > > [ERROR] QUALIFIED > java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 57) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > pl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) > at > org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212 > ) at > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCM > essageReceiver.java:117) at > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogi > c(AbstractInOutMessageReceiver.java:40) at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessage > Receiver.java:114) at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest( > HTTPTransportUtils.java:172) at > org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:307) > at > org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpS > ervice.java:281) at > org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisH > ttpService.java:187) at > org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServic > eProcessor.java:82) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: > 1110) at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java > :603) at java.lang.Thread.run(Thread.java:722) > Caused by: java.lang.NoSuchFieldError: QUALIFIED > at org.apache.cxf.service.model.SchemaInfo.setSchema(SchemaInfo.java:146) > at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:136) at > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:73) at > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65) at > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60) at > org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.jav > a:372) at > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder. > java:339) at > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder. > java:196) at > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder. > java:172) at > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:11 > 9) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:295) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:270) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:263) at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicC > lientFactory.java:198) > > Could someone please help me with this? > > Thank you very much! > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/CXF-DynamicClientFactory-Client-in-Axis2- > tp5711014.html Sent from the cxf-user mailing list archive at Nabble.com. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
