Replies: 1 comment 1 reply
-
The error message seems to imply that Daffodil doesn't handle well URIs starting with Also, you would need to track how these resources are loaded (it's not very explicit from the stacktrace). (Not familiar with Scala so not really enthusiastic at the idea of digging more in there :)) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently having trouble trying to integrate Daffodil into a linux native executable produced with Quarkus.
The project is available here on github : /~https://github.com/isatoone/Quarkus-DFDL.
What I did :
The main class HelloWorld.java is provided here :
Everything is compiled and executed inside a virutal machine running Alma Linux 8.10 as the root user.
As explained in this guide, I had to use the application.properties file to add XSD files from the daffodil-lib dependency as resources for the native executable. I also needed to register some classes for reflection with the ReflectionConfiguration class.
I get the expected behavior running the project as a Java project.
However trying to stimulate the endpoint of the native executable throws the following error :
At first glance, It seems like this XSD file isn't included in the native executable.
In order to test that, I added some code into the HelloWorld class that is stimulated with a property given to the native executable : -Dtest.file.toload=/org/apache/daffodil/xsd/XMLSchema_for_DFDL.xsd.
This code block just opens the file given as property, and prints its content into a text file located in the execution directory. This works as intended and URI used is the exact same as the one we can see in the error thrown by Daffodil.
I can't figure out why I'm able to open the file via the HelloWorld class but Daffodil classes are not.
I would greatly appreciate some help as I'm currently out of ideas.
Thank you for reading.
Beta Was this translation helpful? Give feedback.
All reactions