jaxb
  1. jaxb
  2. JAXB-956

JAXBContext generateSchema() method generates invalid schema when @XmlElements is used

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.6
    • Fix Version/s: None
    • Component/s: schemagen
    • Labels:
      None

      Description

      Schema generation produces invalid schema when classes contain @XmlElements annotations.

        Activity

        Hide
        seanmills added a comment - - edited

        I have a sample maven application, however I don't see an option to attach files to this ticket.

        Show
        seanmills added a comment - - edited I have a sample maven application, however I don't see an option to attach files to this ticket.
        Hide
        Iaroslav Savytskyi added a comment -

        Hi,

        can you upload your app to any file exchange server and put here the link (e.g. dropbox, google drive, etc)? We disabled attachments here because people started to attach viruses.

        Thanks a lot. I'll look at your problem when will have test case.


        Iaroslav

        Show
        Iaroslav Savytskyi added a comment - Hi, can you upload your app to any file exchange server and put here the link (e.g. dropbox, google drive, etc)? We disabled attachments here because people started to attach viruses. Thanks a lot. I'll look at your problem when will have test case. – Iaroslav
        Hide
        seanmills added a comment -

        Here is a maven project that you can run to demonstrate the issue. Executing "mvn clean install" will run the test case and it should complete successfully the first run since it is configured to use com.sun.xml.bind:jaxb-impl:2.2.3.

        https://docs.google.com/file/d/0B1Dj_J0_vXZaaGNwaXA0NUstUHc/edit?usp=sharing

        Now change the com.sun.xml.bind:jaxb-impl artifact from version 2.2.3 to 2.2.6 in the pom.xml and rerun. I tried version 2.2.7 and it fails in the same way. The issue appears to be a missing namespace issue.

        Show
        seanmills added a comment - Here is a maven project that you can run to demonstrate the issue. Executing "mvn clean install" will run the test case and it should complete successfully the first run since it is configured to use com.sun.xml.bind:jaxb-impl:2.2.3. https://docs.google.com/file/d/0B1Dj_J0_vXZaaGNwaXA0NUstUHc/edit?usp=sharing Now change the com.sun.xml.bind:jaxb-impl artifact from version 2.2.3 to 2.2.6 in the pom.xml and rerun. I tried version 2.2.7 and it fails in the same way. The issue appears to be a missing namespace issue.
        Hide
        seanmills added a comment -

        This issue appears fixed in 2.2.8-b01. Any gut feel on when 2.2.8 will be officially released?

        Show
        seanmills added a comment - This issue appears fixed in 2.2.8-b01. Any gut feel on when 2.2.8 will be officially released?
        Hide
        Iaroslav Savytskyi added a comment -

        Hi,

        According to my info we are planning to release it at October-November.

        But you can use 2.2.8-bXX for the time being. It's our official development releases integrated into metro, GF, etc.


        Iaroslav

        Show
        Iaroslav Savytskyi added a comment - Hi, According to my info we are planning to release it at October-November. But you can use 2.2.8-bXX for the time being. It's our official development releases integrated into metro, GF, etc. – Iaroslav

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            seanmills
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: