This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
     new 20edb41  Don't activate Tomcat's GraalVM JNI resources by default
20edb41 is described below

commit 20edb410286fdfe141dc0178f361493d4f3ca72c
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
---
 res/graal/tomcat-embed-core/native-image/native-image.properties | 2 +-
 webapps/docs/changelog.xml                                       | 5 ++++-
 2 files changed, 5 insertions(+), 2 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 c49ff08..a1b224c 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -85,7 +85,10 @@
       </add>
       <add>
         Add GraalVM config for Tomcat JNI related classes. This makes it
-        possible to use the APR protocol in GraalVM native images. (mgrigorov)
+        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

Reply via email to