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

  5. 0

    Metro - Users - Circular references in a wsdl?

    nabble.com | 12 months ago
    com.sun.istack.SAXParseException2: Two declarations cause > a collision in the ObjectFactory class. at > com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82) at > com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:333) at > com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:59) at > com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:542) at > com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:234) 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 > com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134) at > com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2245) at > com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187) at > com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133) at > com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183) at > com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:672) at > com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55) at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  6. 0

    Metro - Users - Circular references in a wsdl?

    nabble.com | 12 months ago
    com.sun.istack.SAXParseException2: Two declarations cause >>> a collision in the ObjectFactory class. at >>> com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:82) at >>> com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:333) at >>> com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:59) at >>> com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:542) at >>> com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:234) 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 >>> com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:134) at >>> com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2245) at >>> com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:187) at >>> com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:133) at >>> com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:183) at >>> com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:672) at >>> com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55) at >>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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