org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: Error compiling schema from WADL : Two declarations cause a collision in the ObjectFactory class.

YouTrack | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot generate Java code from application.wadl: A class/interface with the same name "test.Projects" is already in use

    YouTrack | 3 years ago
    org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: Error compiling schema from WADL : Two declarations cause a collision in the ObjectFactory class.
  2. 0

    WebSphere:WebSphere Process Server:CXF client fails to consume a WebSphere Process Server service - WebSphere Process Server Forum

    ibm.com | 1 year ago
    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.
  3. 0

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

    Coderanch | 8 years ago | Juan Jaramillo
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.istack.SAXParseException2

      Two declarations cause a collision in the ObjectFactory class.

      at com.sun.tools.xjc.ErrorReceiver.error()
    2. Old JAXB XJC
      SchemaCompilerImpl.bind
      1. com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:86)
      2. com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:191)
      3. com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:59)
      4. com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:267)
      5. com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:166)
      6. com.sun.tools.xjc.model.Model.generateCode(Model.java:290)
      7. com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:284)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Apache CXF Core
      ReflectionInvokationHandler.invoke
      1. org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:54)
      1 frame
    5. com.sun.proxy
      $Proxy10.bind
      1. com.sun.proxy.$Proxy10.bind(Unknown Source)
      1 frame
    6. Apache CXF Command Line Tools WADLTo JAXRS Frontend
      JAXRSContainer.execute
      1. org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.createCodeModel(SourceGenerator.java:1460)
      2. org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.generateSchemaCodeAndInfo(SourceGenerator.java:280)
      3. org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.generateSource(SourceGenerator.java:268)
      4. org.apache.cxf.tools.wadlto.jaxrs.JAXRSContainer.processWadl(JAXRSContainer.java:167)
      5. org.apache.cxf.tools.wadlto.jaxrs.JAXRSContainer.execute(JAXRSContainer.java:69)
      6. org.apache.cxf.tools.wadlto.jaxrs.JAXRSContainer.execute(JAXRSContainer.java:78)
      6 frames
    7. Apache CXF Command Line Tools Common
      ToolRunner.runTool
      1. org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
      1 frame
    8. Apache CXF Command Line Tools WADLTo JAXRS Frontend
      WADLToJava.main
      1. org.apache.cxf.tools.wadlto.WADLToJava.run(WADLToJava.java:65)
      2. org.apache.cxf.tools.wadlto.WADLToJava.run(WADLToJava.java:57)
      3. org.apache.cxf.tools.wadlto.WADLToJava.main(WADLToJava.java:99)
      3 frames