Giter VIP home page Giter VIP logo

Comments (6)

AM-csx avatar AM-csx commented on May 27, 2024 1

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.

apenski avatar apenski commented on May 27, 2024

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.

apenski avatar apenski commented on May 27, 2024

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.

AM-csx avatar AM-csx commented on May 27, 2024

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":
KositValidationDemoApplication_succesful_from_intellij

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.

apenski avatar apenski commented on May 27, 2024

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.

apenski avatar apenski commented on May 27, 2024

we plan to release within July. The branch is merged to the master now

from validator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.