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

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon May 25 07:11:08 EDT 2009


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
            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

        



More information about the jboss-jira mailing list