Comments (6)
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?
from validator.
This is a known limitation and we plan to support loading scenario-content from a jar file.
However, since JAR-URIs fail to resolve relative paths correctly, it is not as easy as 'return a correct stream source in ContentRepository'. This would result in errors loading transitive resources like references schema files.
from validator.
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.
from validator.
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:
- We want to use the KoSIT validator as a library.
- Our actual application is a Spring Boot application.
- We get the "KoSIT validator"-library as dependency in Maven.
- For each configuration version of the XRechnung (https://github.com/itplr-kosit/validator-configuration-xrechnung/releases) we have its own subfolder in our resource folder of our Spring Boot application.
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:
KositValidationDemoApplication_failed_from_jar.log
from validator.
Thanks for beta testing the branch. Actual I missed the default deduction of the repository location when not configured explicitly. I created a fix in 3edb23b and was successfull loading the resources with your snippet.
Can you please test the branch again (moved to this repo)
from validator.
we plan to release within July. The branch is merged to the master now
from validator.
Related Issues (20)
- Role is null in FailedAssert HOT 9
- Loading of XSLT throws exception HOT 3
- Absolute path required
- Jakarta support HOT 2
- Deamon Mode Exception at startup HOT 4
- IllegalArgumetException wenn Repository Parameter nicht angegeben HOT 2
- BR-17 BT-59 Same name fΓΌr Payee and Seller is an error since xrechnung-2.3 HOT 3
- Multi language support for reports
- Assertion results output
- Saxon throws exception with new 1.5.0 validator (Java) HOT 4
- Documentation for version 1.5.0 not updated
- ValidationTool 1.5.0 Fails with "java.lang.IllegalArgumentException: No repository location for scenario definition 'default_1'" HOT 2
- Broken matching in multiple scenario files
- maven pom doesn't specify transitive dependencies HOT 2
- Document valid on https://kositvalidator.service-bw.de/ (1.4.2) not valid locally (neither 1.4.2 nor 1.5.0) HOT 5
- Custom Level ignored in Result via Java Api HOT 1
- Update README: "Third party validation configurations"
- Command line output says "reject", validation result document says "accept" HOT 1
- Outdated API Documentation for 1.5.0
- Check result to stdout causes an exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from validator.