[jbossts-issues] [JBoss JIRA] (JBTM-2317) SAX parsing of properties file fails when offline

Tom Jenkinson (JIRA) issues at jboss.org
Mon Dec 8 08:33:39 EST 2014


Tom Jenkinson created JBTM-2317:
-----------------------------------

             Summary: SAX parsing of properties file fails when offline
                 Key: JBTM-2317
                 URL: https://issues.jboss.org/browse/JBTM-2317
             Project: JBoss Transaction Manager
          Issue Type: Enhancement
          Components: Common
            Reporter: Tom Jenkinson
            Assignee: Tom Jenkinson
             Fix For: 5.0.4


The SAX parser verifies DTDs during parsing of the XML files, this is not done for the StAX parser. As our properties files usually link to the Sun DTD for properties on from java.sun.com this causes SAX parsing to fail when offline.

We only have one test that uses SAX parsing (SAX parsing was added for Android). The workaround is to access the XMLReader from the parser and disable validation and loading-external-dtd's. The unit test still works with this disabled so I think it is safe to ignore downloading the Sun properties DTD.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jbossts-issues mailing list