wood burning stoves 2.0*
The moose likes Web Services and the fly likes Exception when trying to consume a service in Websphere Process Server from CXF Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception when trying to consume a service in Websphere Process Server from CXF Client" Watch "Exception when trying to consume a service in Websphere Process Server from CXF Client" New topic
Author

Exception when trying to consume a service in Websphere Process Server from CXF Client

Juan Jaramillo
Greenhorn

Joined: Aug 31, 2009
Posts: 2
Hi All

I’m trying to consume a web service that is running on WebSphere Process Server. The client sends the request and the server replies with a general exception when I check the server log I found that is rejecting the request when the server is processing the xml:

Exception in thread "main" java.lang.RuntimeException: Error compiling schema from WSDL at {http://srmdeesbd01.suranet.com:9084/TestSuraBrokerSrv2Web/sca/ws2/wsdl/TestSuraBrokerSrv2_ws2.wsdl}: A class/interface with the same name "test.contabilidad.suramericana.Pago" is already in use. Use a class customization to resolve this conflict.
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory$InnerErrorListener.error(DynamicClientFactory.java:493)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:285)
at com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:77)
at com.sun.tools.xjc.util.CodeModelClassFactory.createClass(CodeModelClassFactory.java:116)
at com.sun.tools.xjc.util.CodeModelClassFactory.createClass(CodeModelClassFactory.java:77)
at com.sun.tools.xjc.generator.bean.ImplStructureStrategy$1.createClasses(ImplStructureStrategy.java:78)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassDef(BeanGenerator.java:402)
at com.sun.tools.xjc.generator.bean.BeanGenerator.getClazz(BeanGenerator.java:434)
at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:201)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:174)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:187)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:165)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:144)
at cxf.test.DynamicClientWesbSrv2.main(DynamicClientWesbSrv2.java:39)
Caused by: org.xml.sax.SAXParseException: A class/interface with the same name "test.contabilidad.suramericana.Pago" is already in use. Use a class customization to resolve this conflict.
... 14 more

I'm using CXF 2.1.2 and websphere Process Server 6.2.


Thanks in Advance.
Juan Jaramillo
Greenhorn

Joined: Aug 31, 2009
Posts: 2
I really appreciate if somebody can help me on this issue

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception when trying to consume a service in Websphere Process Server from CXF Client
 
Similar Threads
Problem generating Client stubs using METRO 2.0 Library and Netbeans 6.9(JAX-WS style)
Use a class customization to resolve this conflict Error and JAXWS
Google Web Toolkit (GWT): Practice
JAXB Error
jaxb external customization with WSDL (and imported WSDL)