Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19095

Camel Karaf using buggy Saxon bundle with wrong imports

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.2
    • 3.20.5, 3.21.0
    • karaf
    • None
    • Unknown

    Description

      Will provide PR soon as I finish testing fix.

      Current problems is with:

      <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
      <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/11.4_1</bundle> 

      Saxon 11.4 requires to import org.xmlresolver (v4.4.3) and not org.apache.xml.resolver (v1.2).

      Temporary workaround is to define bundle replacements like below:

      <bundle mode="maven" originalUri="mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5" replacement="wrap:mvn:org.xmlresolver/xmlresolver/4.4.3"/>
      <bundle mode="maven" originalUri="mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/11.4_1" replacement="wrap:mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/11.4_2$overwrite=merge&amp;Import-Package=javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.stream,javax.xml.stream.events,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.transform.stax,javax.xml.xpath,org.xmlresolver,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers,javax.xml,javax.xml.xquery;resolution:=optional,com.saxonica.functions.map;resolution:=optional,com.saxonica.stream;resolution:=optional"/> 

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              nannou9 Piotr Klimczak
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: