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
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