micronaut-projects / micronaut-core

Micronaut Application Framework
http://micronaut.io
Apache License 2.0
6.09k stars 1.07k forks source link

Fail generating standalone native image with graalvm-java-8 #2907

Open parml opened 4 years ago

parml commented 4 years ago

Thanks for reporting an issue for Micronaut, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.

NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.

Task List

Steps to Reproduce

  1. Open project in attachment (it's a the hello-world + one dependency and a trivial controller.
  2. Build project with java 8 (./mvnw clean package) (have JAVA_HOME pointed to a JDK8 installation)
  3. Run ./docker-build.sh

Expected Behaviour

Stand-alone Docker image successfully created.

Actual Behaviour

Fallback image created.

Exceptions due to step 3 in attached file.

Environment Information

(./docker-build.sh run on a WSL2 ubuntu instance. Docker for Windows involved stacktrace.txt )

Example Application

MISC

Should you build with JDK 11(mvnw clean install), adapt the Dockerfile to use graalvm-java11, no image is generated at all (some NoClassDefError on some Kotlin lib class, micronaut class involved)

ilopmar commented 4 years ago

The issue is because of Asciidoctor and JRuby support in GraalVM. I think you should report the issue to Asciidoctor directly.