-
Notifications
You must be signed in to change notification settings - Fork 120
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
Bug! Spring bootJar: NoSuchFileException: /path/application.jar!/BOOT-INF/classes, /path/application.jar!/BOOT-INF/lib/somelib.jar #1101
Comments
Any chance you can provide a reproducer? |
I can't reproduce locally: this is not even my project: I think, an easy fix is:
could logger.warn (Exception) • always or • if configuration flag is set This strange path in Class Path comes from:
which returns such inaccessible path when running as Spring-boot in Kubernetes pod 🤷♀️ |
Unfortunately without a way to reproduce the issue, we can't push random fixes. I'm happy to help you with this, but I don't have much to work with. Can you reproduce it by deploying to a local k8s, like minikube? |
I have managed to start app in minikube: no exception. But now we know: I have checked:
I have "solved" the problem by making copies of your classes and wrapping |
When someone reports an issue with Kubernetes, I can consistently reproduce it locally in Minikube. In cases where I could not do it, it was due to differences in the reproducer, configuration, or other deployment aspects.
I don't see how that is possible, using the same binary in two different environments. It shouldn't make any difference, but we cannot just assume that without a proper reproducer. |
Ok. The problem is not in a container, but in Spring Boot If you run jar file created by (Spring) boorJar task, you receive
openjdk version "21.0.2" 2024-01-16 LTS smallrye-config-common-3.7.1.jar command line: java -jar PushWalletProcessorApplication.jar |
quick fix:
➖ |
The second problem is Could you add it to
|
How I have temporarily solved the problem
|
Example application
|
Application is in spring boot application.jar, runs in Kubernetes
where
App fails with
The text was updated successfully, but these errors were encountered: