This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push: new 447d24c Don't activate Tomcat's GraalVM JNI resources by default 447d24c is described below commit 447d24c773dc9bafb7a37bbc583dea5242644065 Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> AuthorDate: Wed Nov 11 10:06:31 2020 +0200 Don't activate Tomcat's GraalVM JNI resources by default If an application needs to use APR protocol then it could activate the JNI config by adding '-H:JNIConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-jni.json' to native-image's arguments https://bz.apache.org/bugzilla/show_bug.cgi?id=64875 (cherry picked from commit 20edb410286fdfe141dc0178f361493d4f3ca72c) --- res/graal/tomcat-embed-core/native-image/native-image.properties | 2 +- webapps/docs/changelog.xml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/graal/tomcat-embed-core/native-image/native-image.properties b/res/graal/tomcat-embed-core/native-image/native-image.properties index 5cbfb55..8944701 100644 --- a/res/graal/tomcat-embed-core/native-image/native-image.properties +++ b/res/graal/tomcat-embed-core/native-image/native-image.properties @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -Args = -H:ReflectionConfigurationResources=${.}/tomcat-reflection.json -H:ResourceConfigurationResources=${.}/tomcat-resource.json -H:JNIConfigurationResources=${.}/tomcat-jni.json +Args = -H:ReflectionConfigurationResources=${.}/tomcat-reflection.json -H:ResourceConfigurationResources=${.}/tomcat-resource.json diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 0a1a928..84c09d0 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -80,8 +80,11 @@ HTML. (kfujino) </add> <add> - Add GraalVM config for Tomcat JNI related classes. This makes it possible to use the APR - protocol in GraalVM native images. (mgrigorov) + Add GraalVM config for Tomcat JNI related classes. This makes it + possible to use the APR protocol in GraalVM native images. + To use it add the following to the native-image arguments: + <code>-H:JNIConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-jni.json</code> + (mgrigorov) </add> <fix> JNDIRealm connections should only be created with the container --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org