Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1751

idl2wsdl fails to generate wsdl for IDL files with complex object reference usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • Tooling
    • None

    Description

      Here is the stack trace:

      org.apache.cxf.tools.common.ToolException: org.apache.cxf.tools.common.ToolException: org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection
      at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:88)
      at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:79)
      at org.apache.cxf.tools.corba.processors.idl.AbstractIDLToWSDLModuleToNSTestCase.testModuleToNSWSDLGeneration(AbstractIDLToWSDLModuleToNSTestCase.java:147)
      at org.apache.cxf.tools.corba.processors.idl.AbstractIDLToWSDLModuleToNSTestCase.testModuleToNSWSDLGeneration(AbstractIDLToWSDLModuleToNSTestCase.java:89)
      at org.apache.cxf.tools.corba.processors.idl.AbstractIDLToWSDLModuleToNSTestCase.testModuleToNSWSDLGeneration(AbstractIDLToWSDLModuleToNSTestCase.java:76)
      at com.iona.soa.bindings.corba.tools.processors.idl.IDLToWSDLParlay50GenerationTest.testPolicyInterfaces(IDLToWSDLParlay50GenerationTest.java:496)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:980)
      Caused by: org.apache.cxf.tools.common.ToolException: org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection
      at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:219)
      at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.process(IDLToWSDLProcessor.java:86)
      ... 28 more
      Caused by: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection
      at org.apache.cxf.tools.corba.processors.idl.PortTypeVisitor.visitInterface(PortTypeVisitor.java:199)
      at org.apache.cxf.tools.corba.processors.idl.PortTypeVisitor.visit(PortTypeVisitor.java:91)
      at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:66)
      at org.apache.cxf.tools.corba.processors.idl.ModuleVisitor.visit(ModuleVisitor.java:53)
      at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:57)
      at org.apache.cxf.tools.corba.processors.idl.ModuleVisitor.visit(ModuleVisitor.java:53)
      at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:57)
      at org.apache.cxf.tools.corba.processors.idl.ModuleVisitor.visit(ModuleVisitor.java:53)
      at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:57)
      at org.apache.cxf.tools.corba.processors.idl.ModuleVisitor.visit(ModuleVisitor.java:53)
      at org.apache.cxf.tools.corba.processors.idl.DefinitionVisitor.visit(DefinitionVisitor.java:57)
      at org.apache.cxf.tools.corba.processors.idl.WSDLASTVisitor.visit(WSDLASTVisitor.java:120)
      at org.apache.cxf.tools.corba.processors.idl.IDLToWSDLProcessor.parseIDL(IDLToWSDLProcessor.java:211)
      ... 29 more
      Caused by: org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection
      at org.apache.ws.commons.schema.XmlSchema.<init>(XmlSchema.java:126)
      at org.apache.ws.commons.schema.XmlSchema.<init>(XmlSchema.java:134)
      at org.apache.cxf.tools.corba.processors.idl.ObjectReferenceVisitor.visitForwardDeclaredObjectReference(ObjectReferenceVisitor.java:465)
      at org.apache.cxf.tools.corba.processors.idl.ObjectReferenceVisitor.visit(ObjectReferenceVisitor.java:86)
      at org.apache.cxf.tools.corba.processors.idl.ScopedNameVisitor.forwardDeclared(ScopedNameVisitor.java:227)
      at org.apache.cxf.tools.corba.processors.idl.ScopedNameVisitor.visit(ScopedNameVisitor.java:99)
      at org.apache.cxf.tools.corba.processors.idl.ParamTypeSpecVisitor.visit(ParamTypeSpecVisitor.java:62)
      at org.apache.cxf.tools.corba.processors.idl.OperationVisitor.visitOpTypeSpec(OperationVisitor.java:375)
      at org.apache.cxf.tools.corba.processors.idl.OperationVisitor.visit(OperationVisitor.java:161)
      at org.apache.cxf.tools.corba.processors.idl.PortTypeVisitor.visitInterface(PortTypeVisitor.java:174)
      ... 41 more

      Attachments

        1. complex_obj_ref_idl.diff
          4 kB
          Matteo Vescovi

        Activity

          People

            dkulp Daniel Kulp
            matteo.vescovi Matteo Vescovi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: