You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "John Taylor (Jira)" <ji...@apache.org> on 2023/01/14 04:19:00 UTC

[jira] [Created] (SM-5436) Saxon 11.4 bundle is missing import of org.xmlresolver

John Taylor created SM-5436:
-------------------------------

             Summary: Saxon 11.4 bundle is missing import of org.xmlresolver
                 Key: SM-5436
                 URL: https://issues.apache.org/jira/browse/SM-5436
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-saxon
    Affects Versions: bundles-2022.12
         Environment: Karaf 4.4.3

Camel Xslt Saxon 3.20.1  org.apache.camel/camel-xslt-saxon/3.20.1

Servicemix Saxon 11.4_1 org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/11.4_1
            Reporter: John Taylor


Since Saxon 11 org.xmlresolver ([https://github.com/xmlresolver/xmlresolver]) is required, e.g. the discussion [https://saxonica.plan.io/boards/3/topics/8478?r=8480]

The servicemix bundle doesn't include it in the import. 
Trying to use latest camel-xslt-saxon 3.20.1 in karaf 4.4.3 results in

java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/xmlresolver/Resolver
. . . 
Caused by: java.lang.NoClassDefFoundError: org/xmlresolver/Resolver
    at net.sf.saxon.lib.CatalogResourceResolver.<init>(CatalogResourceResolver.java:46) ~[?:?]
    at net.sf.saxon.Configuration.init(Configuration.java:367) ~[?:?]
    at net.sf.saxon.Configuration.<init>(Configuration.java:230) ~[?:?]
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
    at java.lang.Class.newInstance(Class.java:584) ~[?:?]
    at net.sf.saxon.Configuration.newConfiguration(Configuration.java:246) ~[?:?]
    at net.sf.saxon.s9api.Processor.<init>(Processor.java:69) ~[?:?]
    at net.sf.saxon.jaxp.SaxonTransformerFactory.<init>(SaxonTransformerFactory.java:59) ~[?:?]
    at net.sf.saxon.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:42) ~[?:?]
    at org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint.createXsltBuilder(XsltSaxonEndpoint.java:202) ~[?:?]
    at org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint.createXsltBuilder(XsltSaxonEndpoint.java:58) ~[?:?]
    at org.apache.camel.component.xslt.XsltEndpoint.doInit(XsltEndpoint.java:337) ~[?:?]
    at org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint.doInit(XsltSaxonEndpoint.java:165) ~[?:?]
    at org.apache.camel.support.service.BaseService.init(BaseService.java:83) ~[?:?]
    at org.apache.camel.support.service.ServiceHelper.initService(ServiceHelper.java:84) ~[?:?]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)