-
-
Notifications
You must be signed in to change notification settings - Fork 951
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
Runnable jar fails for 5.2.0 #12589
Comments
I ran into this problem as well when launching the Spring Boot jar on macOS. Launching the jar in a Linux docker container fails with:
which sounds similar to this Micronaut issue: issue with Micronaut: micronaut-projects/micronaut-core#7144. The workarounds in that thread did not work for me. |
I ran with the same problem. |
Example App:
|
micronautContext
.environment
.addPropertySource("grails-config", [(MicronautBeanFactoryConfiguration.PREFIX + ".bean-excludes"): (Object)beanExcludes]) |
I get the following exception when running in a Linux Docker container using JDK 11:
|
Refactor code around file system to synchronously access file system when using JAR. Fixes grails/grails-core#12589
I think I have fixed one part of the problem where you won't see exceptions such as
It looks like |
@puneetbehl Does that have anything to do with the actual build process? micronaut-projects/micronaut-gradle-plugin#406
|
I don't think it has anything to do with it. Basically the problem is with Micronaut 3.5 where it does not support reading BeanDefinitionReference from nested JAR. For example, the path is I am working on a Pull Request to support the same which I believe should fix the problem. |
@puneetbehl thanks for the update! |
@puneetbehl it sounds like they need you to provide them a way to replicate the issue |
This is still broken when the injected bean references are stored in /BOOT-INF/classes i.e. jar:file:/Users/khayes/foobar/build/libs/foobar-0.1.jar!/BOOT-INF/classes!/META-INF/micronaut/io.micronaut.inject.BeanDefinitionReference |
For my projects at least, v5.2.1 fixes this issue. Thanks. |
This should be resolved with 5.2.2 |
Expected Behavior
App should start normally
Actual Behaviour
Get a stack trace, app doesn't start.
Steps To Reproduce
Environment Information
MacOSX 12.4
sdk current
Using:
ant: 1.10.12
gradle: 7.4.2
grails: 5.2.0
groovy: 3.0.11
java: 11.0.15.fx-zulu
kotlin: 1.7.0
maven: 3.8.6
micronaut: 3.5.2
springboot: 2.7.1
tomcat: 10.0.22
SBortman-MacBook-Pro /tmp/foo-app $
Example Application
No response
Version
5.2.0
The text was updated successfully, but these errors were encountered: