Skip to content
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

Fail to import domain when exec "java -jar" #426

Closed
dangsg opened this issue Jun 20, 2023 · 1 comment
Closed

Fail to import domain when exec "java -jar" #426

dangsg opened this issue Jun 20, 2023 · 1 comment

Comments

@dangsg
Copy link
Contributor

dangsg commented Jun 20, 2023

Describe the bug
This issue is happen when you wrap benerator-ce-3.1.0.jar into another jar, then execute with java -jar.
The root cause is that it cannot loadClass from inner jar file: spring-boot-test.jar -> benerator-ce.jar => com.rapiddweller.domain.address

To Reproduce
Steps to reproduce the behavior:

  1. Create a spring boot project
  2. Add benerator-ce 3.1.0 into pom.xml
  3. Add a function with:
try (DescriptorRunner runner = new DescriptorRunner("benerator.xml", new DefaultBeneratorContext())) {
            runner.runWithoutShutdownHook();

  1. mvn clean package: to build jar
  2. java -jar target/file.jar to start spring boot server
  3. Call an API to call function 3

Expected behavior
The behavior of "import" is very different from version 2.0.0 and 3.1.0. Need to take more time to check the different.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@ake2l
Copy link
Member

ake2l commented Oct 10, 2023

@dangsg hey dang , what about this pull request, could you give me a short update

@dangsg dangsg closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants