michaelhkay commented on issue #1615:
URL: https://github.com/apache/camel-quarkus/issues/1615#issuecomment-1100733550

   Yes, we (more specifically my colleague O'Neil Delpratt) are actively 
working on getting Saxon to work under GraalVM; and as you've found, dynamic 
loading and reflection is the main challenge.
   
   I'm not sure if we have anything more we can share with you at the moment. 
We're probably at about the same stage of development. But we're happy to share 
information if this helps us reach the goal more quickly.
   
   Michael Kay
   Saxonic
   
   > On 16 Apr 2022, at 16:46, CynanX ***@***.***> wrote:
   > 
   > 
   > I'm currently using Quarkus 2.7.5.Final and building on GraalVM 21.3.1 
Java 17 CE (Java Version 17.0.2+8-jvmci-21.3-b09).
   > 
   > The relevant sections of my pom are:
   > 
   > <dependency>
   >     <groupId>org.apache.camel.quarkus</groupId>
   >     <artifactId>camel-quarkus-xslt-saxon</artifactId>
   >     <exclusions>
   >         <exclusion>
   >             <groupId>net.sf.saxon</groupId>
   >             <artifactId>Saxon-HE</artifactId>
   >         </exclusion>
   >     </exclusions>
   > </dependency>
   > 
   > <dependency>
   >     <groupId>net.sf.saxon</groupId>
   >     <artifactId>saxon-pe</artifactId>
   >     <version>11.3</version>
   > </dependency>
   > 
   > <dependency>
   >     <groupId>com.sun.mail</groupId>
   >     <artifactId>javax.mail</artifactId>
   >     <version>1.6.2</version>
   > </dependency>
   > Here's is my resource-config.json file:
   > 
   > {
   >   "resources": {
   >     "includes": [
   >       {
   >         "pattern": "\\Qsaxon-license.lic\\E"
   >       }
   >     ]
   >   }
   > }
   > And finally here is my reflect-config.json file:
   > 
   > [
   >   {
   >     "name": "com.saxonica.config.ProfessionalConfiguration",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "com.saxonica.functions.extfn.Parse",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "net.sf.saxon.functions.StringJoin",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "net.sf.saxon.functions.String_1",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "net.sf.saxon.functions.Tokenize_1",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.XsltBuilder",
   >     "allDeclaredFields": true,
   >     "queryAllDeclaredMethods": true
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.XsltComponent"
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.XsltComponentConfigurer"
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.XsltEndpointConfigurer"
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.XsltEndpointUriFactory"
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.saxon.XsltSaxonBuilder",
   >     "allDeclaredFields": true,
   >     "allDeclaredClasses": true,
   >     "queryAllDeclaredMethods": true,
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": "org.apache.camel.component.xslt.saxon.XsltSaxonComponent"
   >   },
   >   {
   >     "name": 
"org.apache.camel.component.xslt.saxon.XsltSaxonComponentConfigurer",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": 
"org.apache.camel.component.xslt.saxon.XsltSaxonEndpointConfigurer",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": []
   >       }
   >     ]
   >   },
   >   {
   >     "name": 
"org.apache.camel.component.xslt.saxon.XsltSaxonEndpointUriFactory"
   >   },
   >   {
   >     "name": "org.xmlresolver.loaders.XmlLoader",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": [
   >           "org.xmlresolver.ResolverConfiguration"
   >         ]
   >       }
   >     ]
   >   },
   >   {
   >     "name": "org.xmlresolver.logging.DefaultLogger",
   >     "methods": [
   >       {
   >         "name": "<init>",
   >         "parameterTypes": [
   >           "org.xmlresolver.ResolverConfiguration"
   >         ]
   >       }
   >     ]
   >   }
   > ]
   > Note. There are several more Saxon functions not in the file above but 
will be required it they are utilised by your XSLT files.
   > 
   > I saw a thread on StackOverFlow not long ago where by @michaelhkay 
<https://github.com/michaelhkay> mentioned they were looking at producing a 
native friendly version of Saxon, so he may be willing to assist here.
   > 
   > —
   > Reply to this email directly, view it on GitHub 
<https://github.com/apache/camel-quarkus/issues/1615#issuecomment-1100693491>, 
or unsubscribe 
<https://github.com/notifications/unsubscribe-auth/AASIQIXRSMJ3WAVWJM6J3NTVFLOF5ANCNFSM4QLTNXCA>.
   > You are receiving this because you were mentioned.
   > 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to