https://bz.apache.org/bugzilla/show_bug.cgi?id=69465

            Bug ID: 69465
           Summary: [GraalVM 21] Fix warnings during native image
                    compilation
           Product: Tomcat 10
           Version: 10.1.31
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Packaging
          Assignee: dev@tomcat.apache.org
          Reporter: maxim.kovale...@hotcode.lv
  Target Milestone: ------

Getting warnings during native image compilation when tomcat-embed-core,
tomcat-embed-el and tomcat-embed-websocket are included as dependencies in
GraalVM Native image builds:

```
# Warning: The option
'-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-reflection.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
# Warning: The option
'-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-reflection.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
# Warning: The option
'-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-resource.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
# Warning: The option
'-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-reflection.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
# Warning: The option
'-H:IncludeResources=rabbitmq-amqp-client.properties|version.properties' is
experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the
future.
# Warning: The option
'-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-resource.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
# Warning: The option
'-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-resource.json'
is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in
the future.
```

Building native image with Tomcat should succeed without warnings.

More details:
JDK: GraalVM 21.0.5+9.1
spring-boot:3.3.5
tomcat-embed-core:10.1.31
tomcat-embed-el:10.1.31
tomcat-embed-websocket:10.1.31

You can check the same fix in netty, micrometer and quarkus:
https://github.com/netty/netty/issues/13595
https://github.com/micrometer-metrics/micrometer/issues/4316
https://github.com/quarkusio/quarkus/issues/35788
https://github.com/oracle/graal/issues/7105

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to