-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[native-image] running play on GraalVM/SubstrateVM #424
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
Comments
@schmitch thank you for your report. The
,where In the near future we will also support loading resources via We already support reflection through configuration files and are currently looking into supporting That being said, the best way to make an application/framework compatible with SubstrateVM is to, if possible, avoid using unsupported features. |
Well we could probably look if we could rewrite some logic that supports SubstrateVM, however without support for I have created some work that now supports image creation, but fails on runtime: Part of Stacktrace:
|
Related: #470 (comment) |
Is loading resources via |
Well unfortunatly it fails with: |
Can you please provide the steps to reproduce this? |
Well just clone: Play branch https://github.com/schmitch/playframework/tree/substrate-vm-optimization |
As of 427e54b the |
failed to read configurations for GraalVM 19+/Play 2.7 |
Hello,
I wanted to share my knowledge of running Play on GraalVM and wanted to point out some "issues" along the way.
Some error messages I couldn't really resolve are these:
See: https://gist.github.com/schmitch/469eae4062373b6fe67def99ec220103
(I also created a repository to reproduce them: https://github.com/schmitch/play-scala-starter-example)
After that I tried to create a Play application in the "embedded" mode which is basically described here: https://www.playframework.com/documentation/2.6.x/ScalaEmbeddingPlayAkkaHttp
The good thing is, the issue's above aren't raised, however I had a problem because of the issues I described here: https://discuss.lightbend.com/t/akka-and-graal-s-native-image-tool/940/9
Currently I guess after fixing these "issues" there is still some work for play because in some cases we need proxy's or reflection where we might not need to. But a simple application could probably be made to run under substratevm.
The text was updated successfully, but these errors were encountered: