akvo / akvo-reportserver

An instance of ReportServer dockerized
GNU Affero General Public License v3.0
0 stars 0 forks source link

Update Tomcat and JRE #9

Open iperdomo opened 6 years ago

iperdomo commented 6 years ago

We're running Apache Tomcat 7 / JRE 8. We wnat to move to JRE 11.

The available combination in Docker Hub is Tomcat 9 / JRE 11.

diff --git a/Dockerfile b/Dockerfile
index 7f8c946..3158b4b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,12 +17,12 @@ RUN set -eux; \
     rm -rf /tmp/rs/__MACOSX && \
     find /tmp/rs -name '.DS_Store' -exec rm -rf {} \;

-FROM tomcat:7-jre8
+FROM tomcat:9-jre11

 RUN set -eux; \
     apt-get update && \
     apt-get install -y --no-install-recommends \
-    postgresql-client-9.6=9.6.9-0+deb9u1 && \
+    postgresql-client-10=10.5-1 && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/* && \
     bash -c "rm -rf ${CATALINA_HOME}/webapps/{docs,examples,host-manager,manager}"

It seems that the ReportServer works fine, but we have some WARNING in the logs:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.datenwerke.rs.configservice.service.configservice.LibDirClasspathHelper (file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/reportserver.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of net.datenwerke.rs.configservice.service.configservice.LibDirClasspathHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Waiting for reply on the severity of this. https://forum.reportserver.net/viewtopic.php?pid=4879

iperdomo commented 6 years ago

More illegal reflective access

WARNING: Illegal reflective access by com.google.gwt.user.client.rpc.core.java.util.LinkedHashMap_CustomFieldSerializer (file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/gwt-servlet-2.7.0.jar) to field java.util.LinkedHashMap.accessOrder