Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-876

BeanXmlParser fails when woodstock is the underlying parser

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.1.2.Final
    • None
    • None
    • None

    Description

      BeansXmlParser has the following code:

      try

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

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: