jaxb
  1. jaxb
  2. JAXB-875

Import schema (via multiple transitive path) causes error of "'XxxType' is already defined", when episode feature comes in play.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.4u1
    • Fix Version/s: None
    • Component/s: xjc
    • Labels:
      None

      Description

      I'm using maven-jaxb2-plugin to generate Java classes from schema files, and want to put the schema files into different modules, using its episode feature.

      The same set of schema files can be compiled altogether in one shot without issue. But when split them into two modules, the issue surfaces. The <import/> relationship among my schema files is comparatively complex.

      The issue turns out to be rooted in the jaxb-xjc (Sun RI), the version I've tested is 2.2.4u1.

      Please use the attached maven project to reproduce the issue. It's stemmed from a real project.

      I've patched the class NGCCRuntimeEx in jaxb-xjc version 2.2.4u1. That patch is just the starting point of fixing the issue, and it works for me. It may not be the right/ultimate solution though. The basic idea is to enhance the ParserContext to remember what schemas have been imported.

        Activity

        Hide
        phantom_john added a comment -

        Error Stack Trace:

        [ERROR] Error while parsing schema(s).Location [ jar:file:/C:/Workbench/Project/References/schema-episode/one/target/schema-episode-one-1.0.0.jar!/META-INF/schema/SC.types.xsd

        {14,13}

        ].
        org.xml.sax.SAXParseException: 'SCT' is already defined
        at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:178)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.checkDoubleDefError(NGCCRuntimeEx.java:150)
        at com.sun.xml.xsom.impl.parser.state.Schema.action5(Schema.java:127)
        at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1287)
        at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183)
        at com.sun.xml.xsom.impl.parser.state.complexType.text(complexType.java:1634)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:236)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:312)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
        at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
        at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
        at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258)
        at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85)
        at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:184)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
        at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
        at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
        at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258)
        at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85)
        at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:184)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281)
        at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250)
        at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92)
        at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100)
        at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104)
        at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267)
        at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347)
        at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128)
        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:168)
        at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:157)
        at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518)
        at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:376)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:172)
        at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:118)
        at org.jvnet.mjiip.v_2_2.XJC22Mojo.loadModel(XJC22Mojo.java:45)
        at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:35)
        at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:22)
        at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:282)
        at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:147)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

        Show
        phantom_john added a comment - Error Stack Trace: [ERROR] Error while parsing schema(s).Location [ jar: file:/C:/Workbench/Project/References/schema-episode/one/target/schema-episode-one-1.0.0.jar!/META-INF/schema/SC.types.xsd {14,13} ]. org.xml.sax.SAXParseException: 'SCT' is already defined at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:180) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:175) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:178) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.checkDoubleDefError(NGCCRuntimeEx.java:150) at com.sun.xml.xsom.impl.parser.state.Schema.action5(Schema.java:127) at com.sun.xml.xsom.impl.parser.state.Schema.onChildCompleted(Schema.java:1287) at com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromText(NGCCHandler.java:183) at com.sun.xml.xsom.impl.parser.state.complexType.text(complexType.java:1634) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:236) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:312) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255) at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100) at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104) at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258) at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85) at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:184) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250) at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100) at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104) at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.importSchema(NGCCRuntimeEx.java:258) at com.sun.xml.xsom.impl.parser.state.importDecl.action0(importDecl.java:85) at com.sun.xml.xsom.impl.parser.state.importDecl.leaveElement(importDecl.java:184) at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:314) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.util.SubtreeCutter.endElement(SubtreeCutter.java:112) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.endElement(CustomizationContextChecker.java:199) at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:546) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.endElement(DOMForestScanner.java:140) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:255) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:281) at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:250) at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:127) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:92) at com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:100) at com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:104) at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:267) at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:347) at com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:128) at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:168) at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:157) at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518) at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:376) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:172) at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:118) at org.jvnet.mjiip.v_2_2.XJC22Mojo.loadModel(XJC22Mojo.java:45) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:35) at org.jvnet.mjiip.v_2_2.XJC22Mojo.doExecute(XJC22Mojo.java:22) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.doExecute(RawXJC2Mojo.java:282) at org.jvnet.jaxb2.maven2.RawXJC2Mojo.execute(RawXJC2Mojo.java:147) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        Hide
        Niels Bertram added a comment -

        Any chance someone can comment on "Applying" the patch? I have used the attached NGCCRuntimeEx.java sources and patched the xsom version 20130531 library. Then I rebuild JAXB-RI 2.2.7 (also tried 2.2.10-SNAPSHOT) and ran the provided test case. Does not seem to make any difference to fixing the problem described. This is a really anoying bug that pretty much renders JAXB inoperable for multi-episode compilation. If anyone has pointer this would be much appreciated.

        Show
        Niels Bertram added a comment - Any chance someone can comment on "Applying" the patch? I have used the attached NGCCRuntimeEx.java sources and patched the xsom version 20130531 library. Then I rebuild JAXB-RI 2.2.7 (also tried 2.2.10-SNAPSHOT) and ran the provided test case. Does not seem to make any difference to fixing the problem described. This is a really anoying bug that pretty much renders JAXB inoperable for multi-episode compilation. If anyone has pointer this would be much appreciated.
        Hide
        maciej.bajolek added a comment - - edited

        I'm getting similar exception when I try to use MOXY provider to marshal dynamically XML to JSON.
        The application loads multiple .xsd's that define in different targetNamespaces. The intention is to be able to use dynamic binding without a need of generating jaxb POJO classes using commandline xjc compiler nor maven-jaxb2 plugin.

        From some reasons I cannot attach source code.

        Show
        maciej.bajolek added a comment - - edited I'm getting similar exception when I try to use MOXY provider to marshal dynamically XML to JSON. The application loads multiple .xsd's that define in different targetNamespaces. The intention is to be able to use dynamic binding without a need of generating jaxb POJO classes using commandline xjc compiler nor maven-jaxb2 plugin. From some reasons I cannot attach source code.
        Hide
        Niels Bertram added a comment -

        I got the originally posted path to work with XSOM, JAXB 2.2.7 and also the 2.2.10-SAPSHOT. I documented the steps needed to apply it on GitHub. Maybe that helps anyone that runs into this problem.

        Show
        Niels Bertram added a comment - I got the originally posted path to work with XSOM, JAXB 2.2.7 and also the 2.2.10-SAPSHOT. I documented the steps needed to apply it on GitHub . Maybe that helps anyone that runs into this problem.
        Hide
        Niels Bertram added a comment -

        Hi Martin,

        any chance we can coordinate a proper fix for this significant issue with the team that writes the xsom library? JAXB 2.2.11 is out and I find myself having to patch every new version, which really sucks. What does it take to fix this?

        Kind Regards,
        Niels

        Show
        Niels Bertram added a comment - Hi Martin, any chance we can coordinate a proper fix for this significant issue with the team that writes the xsom library? JAXB 2.2.11 is out and I find myself having to patch every new version, which really sucks. What does it take to fix this? Kind Regards, Niels
        Hide
        Michael Osipov added a comment -

        Interesting to say that I have a similiar usecase with JAXB and the Maven JAXB2 Plugin which does work but the very same setup with wsimport leads to this error. Since there is no activity from Oracle, I presume either Oracle has abandoned this project or expect suffering users to pay $$$ for the fix.

        Show
        Michael Osipov added a comment - Interesting to say that I have a similiar usecase with JAXB and the Maven JAXB2 Plugin which does work but the very same setup with wsimport leads to this error. Since there is no activity from Oracle, I presume either Oracle has abandoned this project or expect suffering users to pay $$$ for the fix.
        Hide
        Iaroslav Savytskyi added a comment -

        No, no The project isn't abandoned.
        Let me check what can I do with this.

        Show
        Iaroslav Savytskyi added a comment - No, no The project isn't abandoned. Let me check what can I do with this.
        Hide
        Michael Osipov added a comment -

        Can't wait to test a fix. That would probably solve a serious wsimport bug.

        Show
        Michael Osipov added a comment - Can't wait to test a fix. That would probably solve a serious wsimport bug.
        Hide
        Niels Bertram added a comment -

        Looks like JAXB is truly abandoned. The problem is within XSOM and that library is baked into the JAXB RI build process last time I checked. The original fix proposed by phantom_john fixes the issue. Will anyone care if I submit a pull request for XSOM and JAXB-RI to incorporate the patch documented at https://github.com/bertramn/xsom-patch ?

        Show
        Niels Bertram added a comment - Looks like JAXB is truly abandoned. The problem is within XSOM and that library is baked into the JAXB RI build process last time I checked. The original fix proposed by phantom_john fixes the issue. Will anyone care if I submit a pull request for XSOM and JAXB-RI to incorporate the patch documented at https://github.com/bertramn/xsom-patch ?

          People

          • Assignee:
            Martin Grebac
            Reporter:
            phantom_john
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: