[weld-issues] [JBoss JIRA] Created: (WELD-876) BeanXmlParser fails when woodstock is the underlying parser

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Thu Mar 31 00:08:37 EDT 2011

BeanXmlParser fails when woodstock is the underlying parser

                 Key: WELD-876
                 URL: https://issues.jboss.org/browse/WELD-876
             Project: Weld
          Issue Type: Bug
            Reporter: Stuart Douglas
            Priority: Minor

BeansXmlParser has the following code:

            parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
            parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource", loadXsds());
         catch (IllegalArgumentException e)
            // No op, we just don't validate the XML

However, the actual exception thrown (according to the javadoc) is a SAXNotRecognizedException or a SAXNotSupportedException, which means that if the underlying SAX impl does not support those properties then parsing will fail.

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

More information about the weld-issues mailing list