Closed emrul closed 5 years ago
For anyone else who might have hit this, I had to exclude the jetty-alpn-java-server server dependency and it then worked fine. Seems that it includes a Java 9 only class which Substrate VM is not able to handle.
Yes, this is related to oracle/graal#969 - depending on the build environment for the jar, you may or may not have this problem with the v0.0.14 example - my theory is that it depends on the order of the entries in the jar file.
To deal with this, you can either exclude the alpn dependency, use a GraalVM substitution, or use CIO instead of the Jetty Ktor backend. I will switch the example back to CIO for the moment so others don't encounter this.
Hi,
This isn't an issue with Kraal itself but trying to run the example I run into a problem with the Docker build step to create the native image: