Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4391

JAXP class loading protection

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • jbossws-cxf-7.1.0.Final
    • jbossws-cxf-6.2.0.Final
    • jbossws-cxf
    • None

    Description

      The xerces jar is removed from WFLY now, and the JAXP implementation from JDK 11+ is the default one. When the xerces is packaged in the user's deployment , the JDK's JAXP FactoryFinder will always load the service provider and implementation from the user provided xerces jar as the impl class defined by the service provider is org.apache.xerces.jaxp.DocumentBuilderFactoryImpl and this implementation will always be loaded first instead of the jdk's internal jaxp class com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.
      We should provide some classloader to load the JDK's jaxp implementation for the webservice runtime ,and only used the packaged xerces from user's deployment when invoke the webservice implementation.

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            rhn-engineering-ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: