[
https://jira.jboss.org/jira/browse/JBXB-201?page=com.atlassian.jira.plugi...
]
Thomas Diesler updated JBXB-201:
--------------------------------
Fix Version/s: (was: JBossXB-2.0.1.GA)
Affects Version/s: JBossXB-2.0.1.GA
Cannot parse schema/jbxb_1_0.xsd
--------------------------------
Key: JBXB-201
URL:
https://jira.jboss.org/jira/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.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira