Hello there,
I haven't found much on the mailing lists about GeoServer and Apache
Tomcat 10, which already uses new Jakarte Servlet Specification 5.0
(using jakarta.servlet.* package names) so, you may find this post quite
interesting.
Since I'm using a new Ubuntu Server 24.04 LTS, which has actually
dropped Tomcat 9.0 (and I didn't want to use a manually installed Tomcat
9.0 in /opt/tomcat), I've figured out a quite nice solution. The Apache
Tomcat team has build a tool named "Tomcat Migration Tool for Jakarta
EE", which is able to transform compiled Java classes from old
javax.servlet names to new jakarta.servlet package names. It can process
whole WAR files, directories of JAR files as well as single class files.
https://github.com/apache/tomcat-jakartaee-migration
This tool is also available on Debian, Ubuntu and Fedora systems by
installing the tomcat-jakartaee-migration package and invoking the
javax2jakarta command.
After having processed GeoServer's WEB-INF/lib directory with that tool,
GeoServer 2.25.2 started within Apache Tomcat Server with no issues
logged. Additionally, at first glance, GeoServer seems to *work* without
issues as well. Thumbs up!
The migration tool has been written in Java so, you should even be able
to integrate it into GeoServer's build processes in order to produce a
additional download packages compatible with Jakarta Servlet
Specification 5.0 (jakarta.servlet.*).
Cheers
Carsten
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users