[jboss-jira] [JBoss JIRA] Resolved: (JBXB-201) Cannot parse schema/jbxb_1_0.xsd

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Wed Jul 27 07:47:29 EDT 2011


     [ https://issues.jboss.org/browse/JBXB-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler resolved JBXB-201.
---------------------------------

    Resolution: Out of Date


Out of Date

> Cannot parse schema/jbxb_1_0.xsd
> --------------------------------
>
>                 Key: JBXB-201
>                 URL: https://issues.jboss.org/browse/JBXB-201
>             Project: JBoss XML Binding (JBossXB)
>          Issue Type: Bug
>    Affects Versions: JBossXB-2.0.1.GA
>            Reporter: Thomas Diesler
>
> This code
>          String jbxbSchema = "schema/jbxb_1_0.xsd";
>          URL jbxbXSD = context.getBundle().getResource(jbxbSchema);
>          if (jbxbXSD == null)
>             throw new IllegalStateException("Cannot find: " + jbxbSchema);
>          
>          XSModel xsModel = Util.loadSchema(jbxbXSD.toExternalForm(), (SchemaBindingResolver)null);
>          if (xsModel == null)
>             throw new IllegalStateException("Cannot load schema: " + jbxbSchema);
> fails with 
> Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 94:47 src-element.3: Element 'class' has both a 'type' attribute and a 'anonymous type' child. Only one of these is allowed for an element.
> 	at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XSLoaderImpl.loadURI(Unknown Source)
> 	at org.jboss.xb.binding.Util.loadSchema(Util.java:367)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list