[webbeans-issues] [JBoss JIRA] Updated: (WBRI-254) Namespace schema validation being applied to entire beans.xml file

David Allen (JIRA) jira-events at lists.jboss.org
Tue Apr 28 12:10:46 EDT 2009


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

David Allen updated WBRI-254:
-----------------------------

    Component/s: XML


> Namespace schema validation being applied to entire beans.xml file
> ------------------------------------------------------------------
>
>                 Key: WBRI-254
>                 URL: https://jira.jboss.org/jira/browse/WBRI-254
>             Project: Web Beans
>          Issue Type: Bug
>          Components: XML
>    Affects Versions: 1.0.0.PREVIEW1
>            Reporter: David Allen
>
> When a namespace schema is added for one of the namespaces used in a beans.xml file, the entire beans.xml file is being validated against that schema starting with the <beans> element which is in a different namespace.
> The XmlBasedMetadataTest currently fails with the following validation error:
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'Beans'.
> 	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown Source)
> 	at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source)
> 	at javax.xml.validation.Validator.validate(Validator.java:127)
> 	at org.jboss.webbeans.xml.ParseXmlHelper.validateXmlWithXsd(ParseXmlHelper.java:203)
> 	... 31 more
> ... Removed 22 stack frames

-- 
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 weld-issues mailing list