You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2019/05/05 10:23:23 UTC

[tomcat] branch master updated: Provide a base list of interfaces

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 e5ec94b  Provide a base list of interfaces
e5ec94b is described below

commit e5ec94b85364aa9fc4d52a358b74f1d140de7a12
Author: remm <re...@apache.org>
AuthorDate: Sun May 5 12:23:14 2019 +0200

    Provide a base list of interfaces
    
    The native-image-configure doesn't get everything it should yet,
    evidently. Still a lot of fixes needed in Graal and some updates in
    Tomcat (JreCompat needs to adapt to being a native image).
---
 res/tomcat-maven/README.md              |  4 +++-
 res/tomcat-maven/tomcat-reflection.json | 42 +++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/res/tomcat-maven/README.md b/res/tomcat-maven/README.md
index 918501d..12389a2 100644
--- a/res/tomcat-maven/README.md
+++ b/res/tomcat-maven/README.md
@@ -80,6 +80,8 @@ oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default -
 
 ## Native Image
 
+Note: Graal support in Tomcat is not functional yet.
+
 Build Graal native-image-configure tool.
 ```
 export JAVA_HOME=/path...to/graalvm-ce-1.0.0-rc16
@@ -96,5 +98,5 @@ Generate the final json using native-image-configuration then use native image u
 ```
 cd target
 $JAVA_HOME/jre/tools/native-image-configure/native-image-configure generate --trace-input=trace-file.json --output-dir=.
-$JAVA_HOME/bin/native-image -H:+ReportUnsupportedElementsAtRuntime -H:ConfigurationFileDirectories=./ -jar tomcat-maven-1.0.jar
+$JAVA_HOME/bin/native-image -H:+ReportUnsupportedElementsAtRuntime -H:ConfigurationFileDirectories=./ -H:ReflectionConfigurationFiles=../tomcat-reflection.json -jar tomcat-maven-1.0.jar
 ```
diff --git a/res/tomcat-maven/tomcat-reflection.json b/res/tomcat-maven/tomcat-reflection.json
new file mode 100644
index 0000000..9c8f1f1
--- /dev/null
+++ b/res/tomcat-maven/tomcat-reflection.json
@@ -0,0 +1,42 @@
+[
+{
+  "name" : "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl",
+  "methods" : [{"name": "<init>","parameterTypes":[] }]
+},
+{ "name":"org.apache.catalina.AccessLog" },
+{ "name":"org.apache.catalina.AsyncDispatcher" },
+{ "name":"org.apache.catalina.Authenticator" },
+{ "name":"org.apache.catalina.Cluster" },
+{ "name":"org.apache.catalina.Container" },
+{ "name":"org.apache.catalina.Contained" },
+{ "name":"org.apache.catalina.Context" },
+{ "name":"org.apache.catalina.CredentialHandler" },
+{ "name":"org.apache.catalina.DistributedManager" },
+{ "name":"org.apache.catalina.Engine" },
+{ "name":"org.apache.catalina.Executor" },
+{ "name":"org.apache.catalina.Group" },
+{ "name":"org.apache.catalina.Host" },
+{ "name":"org.apache.catalina.JmxEnabled" },
+{ "name":"org.apache.catalina.Lifecycle" },
+{ "name":"org.apache.catalina.LifecycleListener" },
+{ "name":"org.apache.catalina.Loader" },
+{ "name":"org.apache.catalina.Manager" },
+{ "name":"org.apache.catalina.Pipeline" },
+{ "name":"org.apache.catalina.Realm" },
+{ "name":"org.apache.catalina.Role" },
+{ "name":"org.apache.catalina.Server" },
+{ "name":"org.apache.catalina.Service" },
+{ "name":"org.apache.catalina.Session" },
+{ "name":"org.apache.catalina.SessionIdGenerator" },
+{ "name":"org.apache.catalina.SessionListener" },
+{ "name":"org.apache.catalina.Store" },
+{ "name":"org.apache.catalina.StoreManager" },
+{ "name":"org.apache.catalina.User" },
+{ "name":"org.apache.catalina.UserDatabase" },
+{ "name":"org.apache.catalina.Valve" },
+{ "name":"org.apache.catalina.WebResource" },
+{ "name":"org.apache.catalina.WebResourceRoot" },
+{ "name":"org.apache.catalina.WebResourceSet" },
+{ "name":"org.apache.catalina.Wrapper" },
+{ "name":"org.apache.coyote.UpgradeProtocol" }
+]


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org