Will GeoServer run over Tomcat 10.x?

1.1k views Asked by At

We're attempting to migrate our web application from Java 8 to Java 11, and Tomcat 9 to Tomcat 10, however we found out that we need to refactor the code to change javax.* entries by jakarta.* entries. The question is, will the most recent version of GeoServer run in Tomcat 10? Thanks.

We already tried deploying GeoServer 2.19.2 on Tomcat 10 but didn't work.

2

There are 2 answers

1
PC. On

GeoServer is not compatible with Tomcat 10.x, it's not compatible with JakartaEE. Stay with Tomcat 9, which is using Java2EE instead.

0
Gil Handy On

It can be done, with some massaging. The issue is JaveEE to JakartaEE migration. You can use a migration tool (https://github.com/apache/tomcat-jakartaee-migration) on the Geoserver WAR file. I've used it with versions 2.21.3 and 2.20.2 and deployed them to Tomcat 10.