Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16141

(7.1.z) jbossws-common DOMUtils incorrectly assumes presence of DocumentBuilderFactory on all CLs

    XMLWordPrintable

    Details

      Description

      It seems that JBEAP-15434 introduced an issue in jbossws-common's DOMUtils, causing following exception:

      14:35:17,906 ERROR [stderr] (default task-1) javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
      14:35:17,907 ERROR [stderr] (default task-1) 	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:200)
      14:35:17,907 ERROR [stderr] (default task-1) 	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
      14:35:17,907 ERROR [stderr] (default task-1) 	at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:163)
      14:35:17,908 ERROR [stderr] (default task-1) 	at org.jboss.ws.common.DOMUtils$1.initialValue(DOMUtils.java:113)
      14:35:17,908 ERROR [stderr] (default task-1) 	at org.jboss.ws.common.DOMUtils$1.initialValue(DOMUtils.java:100)
      14:35:17,908 ERROR [stderr] (default task-1) 	at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180)
      14:35:17,908 ERROR [stderr] (default task-1) 	at java.lang.ThreadLocal.get(ThreadLocal.java:170)
      14:35:17,908 ERROR [stderr] (default task-1) 	at org.jboss.ws.common.DOMUtils.getDocumentBuilder(DOMUtils.java:200)
      14:35:17,908 ERROR [stderr] (default task-1) 	at org.jboss.ws.common.DOMUtils.parse(DOMUtils.java:250)
      14:35:17,909 ERROR [stderr] (default task-1) 	at org.jboss.ws.common.DOMUtils.parse(DOMUtils.java:211)
      
      

      This is a regression agains EAP 7.1.5.
      Upstream was already fixed in JBWS-4114, but we need to backport the fix for EAP 7.1.z.
      The issue goes away when -Dorg.jboss.ws.alwaysResolveDocumentBuilderFactory=true is used.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spyrkob Bartosz Spyrko-Smietanko
              Reporter:
              pmackay Peter Mackay
              Tester:
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: