You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/09/28 01:53:30 UTC
[GitHub] [camel-quarkus] alagusundarams opened a new issue, #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
alagusundarams opened a new issue, #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142
We were trying to use toD(xslt:${exchange property.somefileinclasspath}) , at this particular line it's resolving to RuntimeURiResolver and inside that when it tries to execute the method transletClassName it throws error saying not able to find the xslt in class path.
I read the documentation as well which says quarkus supports only class path file and http is not supported.
But classpath/somefile.xsl under class path along with quarkus.camel.xalt.source=somefile.xslt it's still not able to resolve.
In buildtimeresolver of xslt I see there is support for looking up file within classpath.
Any specific reason for avoiding the runtimeresolver from dynamically loafing a xsl file in classpath?
@zbendhiba. Any light on this will help us a lot. Thanks in advance.
--
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng closed issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
zhfeng closed issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
URL: https://github.com/apache/camel-quarkus/issues/4142
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1260346314
yeah, a handy re-producer project would be very helpful. Thanks!
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1260326503
@alagusundarams I think this could be fixed in https://github.com/apache/camel-quarkus/pull/4018. And you needs to use `quarkus.camel.xslt.sources=somefile.xslt` for generating the translet classes at build time.
> Any specific reason for avoiding the runtimeresolver from dynamically loading a xsl file from classpath?
I think this will generat classes at runtime and only works in JVM mode. Anyway, with the fix of https://github.com/apache/camel-quarkus/issues/3904 we can support this in JVM mode.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] johnpoth commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1291637988
Yeah same I'm getting:
```[ERROR] unknown protocol: classpath
javax.xml.transform.TransformerException: unknown protocol: classpath
at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.passErrorsToListener (TransformerFactoryImpl.java:661)
at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates (TransformerFactoryImpl.java:836)
at org.apache.camel.quarkus.support.xalan.XalanTransformerFactory.newTemplates (XalanTransformerFactory.java:70)
at org.apache.camel.quarkus.component.xslt.deployment.XsltProcessor.xsltResources (XsltProcessor.java:116)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute (ExtensionLoader.java:925)
at io.quarkus.builder.BuildContext.run (BuildContext.java:277)
at org.jboss.threads.ContextHandler$1.runWith (ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run (EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1478)
at java.lang.Thread.run (Thread.java:834)
at org.jboss.threads.JBossThread.run (JBossThread.java:501)
[ERROR] Could not compile stylesheet
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates (TransformerFactoryImpl.java:832)
at org.apache.camel.quarkus.support.xalan.XalanTransformerFactory.newTemplates (XalanTransformerFactory.java:70)
at org.apache.camel.quarkus.component.xslt.deployment.XsltProcessor.xsltResources (XsltProcessor.java:116)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute (ExtensionLoader.java:925)
at io.quarkus.builder.BuildContext.run (BuildContext.java:277)
at org.jboss.threads.ContextHandler$1.runWith (ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run (EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1478)
at java.lang.Thread.run (Thread.java:834)
at org.jboss.threads.JBossThread.run (JBossThread.java:501)```
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] alagusundarams commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
alagusundarams commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1260340315
@zhfeng even after using the quarkus.camel.xslt.source with a set of xslt files comma separated and trying to pass the file names dynamically into toD(xslt:${exchange property.one of the filename passed in xslt.source }) we see it fails to load the xslt for transformation.
I can share the sample project with exception as needed.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1291445898
@alagusundarams https://github.com/apache/camel-quarkus/pull/4018 has been merged. Can you check with the lastest camel-qurakus building?
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] johnpoth commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
johnpoth commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1293180938
as suggested by @zhfeng, testing with #4018 seems to resolve this issue for me (load stylesheet from classpath)... hopefully for @alagusundarams too ... Thanks !
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] zhfeng commented on issue #4142: Camel quarkus xslt processor runtime uriresolver not able to dynamically load resource from classpath
Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #4142:
URL: https://github.com/apache/camel-quarkus/issues/4142#issuecomment-1322883409
@alagusundarams I just close this issue since the fix has been included in `2.14.0` release. Free feel to reopen it if you have any problem.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org