-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator does not work correctly when packaged as jar within other application #28
Comments
This is a known limitation and we plan to support loading scenario-content from a jar file. |
I prepared a branch with this. This must be testet now. Beta testers welcome! I should be sufficient to provide a valid JAR-URI to initialize ContentRepository and/or ScenarioRepository. |
Unfortunately, we have the same problem with all previous releases. It also doesn't work with your development branch. First some details about our use case and the technical implementation:
Here is a snippet with the concrete example (It is relatively easy to reproduce.): https://gist.github.com/AM-csx/63f63c5166345cb398ddcb3a90287037 When we launch the application from our development environment, everything works fine because our application is still "exploded": If we build our Spring Boot application now as executable JAR (mvn package) and start it, we get the following errors during the initialization: |
Thank you for the quick reaction :) I can confirm that this issue has been resolved with this branch 👍 What are your release plans for a new Validator version? Can you give an approximate time frame? |
we plan to release within July. The branch is merged to the master now |
Following situation:
I use the Kosit Validator as library within another application, which is packaged as jar. The scenario and xsl files are included in the jar as resource files. I specified the URI to the scenario correctly so that the scenario file within the jar is used. When the Validator is build it tries to load the xsl files, which are specified in the scenario file. The constructor fails because the URI cannot be resolved
The error is file not found because line 117 in ContentRepository is not correctly working
return new StreamSource(this.repository.resolve(source).toASCIIString());
The text was updated successfully, but these errors were encountered: