Fork me on GitHub
#graalvm
<
2019-07-24
>
mikeb19:07:21

Has anyone been able to get ring-jetty to compile and run with graalvm?

borkdude19:07:27

what problems do you get with it?

mikeb20:07:41

I am getting reflection warning (e.g. "Warning: Reflection method java.lang.Class.getMethod invoked at Capsule.runMain(Capsule.java:483) "), which then generates a fallback image which requires the JDK for execution negating the whole purpose of using graal in the first place. I should mention I am attempting to use latest graalvm 19.1.1 CE with deps.edn/cli and created an uberjar (seancorfield/depstar, pack/capsule & pack/onejar) then pass that jar to the native-image command. I also ran into same issue trying with http-kit. I'd just like to get a reasonably quick starting http server for use in a docker container.

borkdude20:07:44

@mikeb Have you set *warn-on-reflection* to true?