This is an automated email from the ASF dual-hosted git repository. remm 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 5f32b50 Add JNI configuration 5f32b50 is described below commit 5f32b5084921488cfbae8fe4d154919fd2678052 Author: remm <r...@apache.org> AuthorDate: Mon Jul 15 18:17:08 2019 +0200 Add JNI configuration --- res/tomcat-maven/README.md | 2 +- res/tomcat-maven/tomcat-jni.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/res/tomcat-maven/README.md b/res/tomcat-maven/README.md index b9e45a7..d2592cd 100644 --- a/res/tomcat-maven/README.md +++ b/res/tomcat-maven/README.md @@ -102,7 +102,7 @@ the substrate VM with the agent again. Generate the final json files using native-image-configuration then use native image using the generated reflection metadata: ``` $JAVA_HOME/bin/native-image-configure generate --trace-input=$TOMCAT_MAVEN/target/trace-file.json --output-dir=$TOMCAT_MAVEN/target -$JAVA_HOME/bin/native-image --no-server --allow-incomplete-classpath --enable-https --initialize-at-build-time=org.eclipse.jdt,org.apache.el.parser.SimpleNode,javax.servlet.jsp.JspFactory,org.apache.jasper.servlet.JasperInitializer,org.apache.jasper.runtime.JspFactoryImpl -H:+JNI -H:+ReportUnsupportedElementsAtRuntime -H:+ReportExceptionStackTraces -H:EnableURLProtocols=jar -H:ConfigurationFileDirectories=$TOMCAT_MAVEN/target/ -H:ReflectionConfigurationFiles=$TOMCAT_MAVEN/tomcat-reflecti [...] +$JAVA_HOME/bin/native-image --no-server --allow-incomplete-classpath --enable-https --initialize-at-build-time=org.eclipse.jdt,org.apache.el.parser.SimpleNode,javax.servlet.jsp.JspFactory,org.apache.jasper.servlet.JasperInitializer,org.apache.jasper.runtime.JspFactoryImpl -H:+JNI -H:+ReportUnsupportedElementsAtRuntime -H:+ReportExceptionStackTraces -H:EnableURLProtocols=http,https,jar -H:ConfigurationFileDirectories=$TOMCAT_MAVEN/target/ -H:ReflectionConfigurationFiles=$TOMCAT_MAVEN/tomc [...] ./tomcat-maven-1.0 -Djava.library.path=$JAVA_HOME/jre/lib/amd64 -Dcatalina.base=. -Djava.util.logging.config.file=conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager ``` diff --git a/res/tomcat-maven/tomcat-jni.json b/res/tomcat-maven/tomcat-jni.json new file mode 100644 index 0000000..1ca1093 --- /dev/null +++ b/res/tomcat-maven/tomcat-jni.json @@ -0,0 +1,8 @@ +[ +{ "name":"org.apache.tomcat.jni.FileInfo" }, +{ "name":"org.apache.tomcat.jni.Sockaddr" }, +{ "name":"org.apache.tomcat.jni.FileInfo" }, +{ "name":"org.apache.tomcat.jni.Error" }, +{ "name":"org.apache.tomcat.jni.SSL", "methods":[{"name":"newSSL","parameterTypes":["long","boolean"]}] }, +{ "name":"java.lang.String", "methods":[{"name":"<init>","parameterTypes":["byte[]"]},{"name":"getBytes","parameterTypes":[]}] } +] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org