Is there any problem with relative paths in Quarkus native ? #33796
Replies: 3 comments 1 reply
-
My guess is that somewhere in the camel stack the code might assume the classpath is accessible as a file system. That is not the case in native but also shouldn't be assumed in jvm mode. Are you able to make a reproducer ? @ppalaga might have more of an idea of what causes it. |
Beta Was this translation helpful? Give feedback.
-
You are including xsd/money-transfers.xsd in application.properties via
but the error message complains about xsd/money-transfer.xsd without So you perhaps want to include all XSDs?
|
Beta Was this translation helpful? Give feedback.
-
This was it, many thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm compiling in native mode a Quarkus application that works as expected in JVM mode. It happens to be a Camel application which one of the routes looks like:
This route is polling an input folder and, as soon as an XML file lands in it, it tries to validate it against the schema named
money-transfers.xsd
, found in thexsd
directory. This directory is located insrc/main/resources
folder of the maven project and, after the build, it lands at the root of the resulting JAR.This works as expected in JVM mode but, trying to run it in native mode raises the following exception:
In the JAR associated to the native image I have:
Is there any reason not to be able to locate the mentioned file ?
Many thanks in advance.
Nicolas
Beta Was this translation helpful? Give feedback.
All reactions