Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-3020

NoClassDefFoundError using Xerces / XmlResolver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.1.0
    • 6.1.5, 7.0.2
    • assemblies
    • None

    Description

      cf. http://servicemix.396122.n5.nabble.com/NoClassDefFoundError-using-Xerces-XmlResolver-td5723624.html

      In a nutshell, Xerces bundle wants to use a class (org/apache/xml/resolver/CatalogManager) contained in XmlResolver bundle but can't reach it (due to classloading mechanism).

      The issue can be resolved if XmlResolver's classes are loaded by the same classloader as Xerces's one (the bootstrap / primordial classloader). In our case, this consists in :

      • Adding XmlResolver jar file in <SMX_HOME>/lib/endorsed/
      • Exporting 'org.apache.xml.resolver' to the bootdelegation packages (via <SMX_HOME>/etc/config.properties file)

      Should this solution be the default configuration ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jnbptstm Jean-Baptiste Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: