How to compile a graalvm native image using EclipseStore and Spring Boot? #297
Replies: 8 comments 10 replies
-
I did read the spring docs on Runtime Hints, but I have no idea how to set that up for EclipseStore. |
Beta Was this translation helpful? Give feedback.
-
I spent a few hours today running as many experiments as I could to try to get this to work. They are all in the eclipseStoreTest github repo. Nothing worked. Experiments
The tests never pass. If you skip the tests, you can compile the native image, but if you try to run it, the exact same errors are returned as above.
I watched Migrating Spring Boot apps to GraalVM three times while conducting these tests. |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
I notice that Micronaut is already registered with Graalvm along with a few other eclipse projects. Maybe EclipseStore has it on their roadmap already. |
Beta Was this translation helpful? Give feedback.
-
Well, I spent another 3 hours of my life on this today. Seems impossible. I keep adding more and more reflection hints. I can see that the agent reachability data is being used. :( |
Beta Was this translation helpful? Give feedback.
-
I have moved this issue to StackOverflow |
Beta Was this translation helpful? Give feedback.
-
@LiveNathan while StackOverflow is certainly a useful place, it makes much more sense to create an issue on the GraalVM github page with a minimal reproducer + step by step instructions how to reproduce you problem. |
Beta Was this translation helpful? Give feedback.
-
@olpaw and @hg-ms Would you be willing give a 👍 on the issue I recently created to help move this along? |
Beta Was this translation helpful? Give feedback.
-
This app runs fine locally and in production packaging with
mvn clean package -Pproduction
.I attempted to compile and run a graalvm native image using
mvn -Pproduction -Pnative native:compile
from the Vaadin docs. It compiled, but does not run. Errors are related to EclipseStore. What do I need to do to get this to work?Java 23. Spring Boot 3.3.4. EclipseStore 1.4.0.
Beta Was this translation helpful? Give feedback.
All reactions