jaxb
  1. jaxb
  2. JAXB-832

Classes created using XJC with generateMixedExtensions cannot regenerate a schema

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: runtime
    • Labels:
      None

      Description

      This is taken from trying to diagnose a bug logged with CXF:

      https://issues.apache.org/jira/browse/CXF-3450

      If I use the testcase attached there to generate the java classes, then write a quick main method to do:

      JAXBContext ctx = JAXBContext.newInstance("ping.types"); 
            SchemaOutputResolver resolver = new SchemaOutputResolver() { 
              public Result createOutput(String namespaceUri, 
                        String suggestedFileName) throws IOException { 
                  StreamResult r = new StreamResult(new ByteArrayOutputStream()); 
                  r.setSystemId(suggestedFileName); 
                  return r; 
              }; 
            
            }; 
           ctx.generateSchema(resolver); 
      

      it fails with the stack trace there.

        Activity

        Hide
        Martin Grebac added a comment -

        generatemixedextensions is an experimental proprietary switch, so adjusting priority accordingly

        Show
        Martin Grebac added a comment - generatemixedextensions is an experimental proprietary switch, so adjusting priority accordingly
        Hide
        hhueter added a comment -

        Is there a known workaround for this problem? I need to support a given wsdl which does use mixed contents. This bug prevents the wsdl generation and thus i cant properly deploy my JAX-WS webservice. My runtime environment is a current glassfish installation.

        Show
        hhueter added a comment - Is there a known workaround for this problem? I need to support a given wsdl which does use mixed contents. This bug prevents the wsdl generation and thus i cant properly deploy my JAX-WS webservice. My runtime environment is a current glassfish installation.
        Hide
        0x0000.ru added a comment -

        @javax.xml.bind.annotation.XmlMixed is also an experimental feature? Using this produces the same error.

        Show
        0x0000.ru added a comment - @javax.xml.bind.annotation.XmlMixed is also an experimental feature? Using this produces the same error.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            dkulp
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: