You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to upgrade Tomcat from 9.0.46 to 10.0.6 for #2685, I quickly found that in order to run this upgrade we would also need to upgrade Spring framework and RESTEasy - they use the javax.servlet classpath, which is incompatible in Tomcat 10 which migrates to use jakarta.servlet.
However, there are as of yet no released versions of either library that use the jakarta.servlet classpath. Because of this, it is impossible to update Tomcat to 10 without breaking RESTEasy and Spring framework, until both libraries do work to support Tomcat 10.
To Reproduce
Steps to reproduce the behavior:
Change TomcatVersion in equellaserver/build.sbt to 10.0.6.
Rebuild openEQUELLA. Note errors wherever Spring framework is used (E.G line 90 on RemoteInterceptor.java, where jakarta.servlet.HttpRequest and jakarta.servlet.HttpResponse are used and org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter expects javax.servlet.HttpResponse and javax.servlet.HttpRequest).
Expected behavior
We need to wait until stable versions of org.springframework and resteasy are released that have support for jakarta.servlet classpaths, and then we can upgrade both of those and Tomcat.
Additional context
Another slight problem with upgrading Tomcat is that the JDBCStore which has been deprecated for multiple versions is finally removed, and openEQUELLA relies on this JDBCStore in the TomcatServiceImpl. We will need to migrate to use the new (JNDI) format.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not yet available, the latest is still 5.3.14. When this does update, several updates will be required at once but at least we are currently running 5.3.14 and renovate is actively keeping us up to date.
Note: We don't use spring-core, we only use spring-{aop, context, context-support, jcl, jdbc, orm, tx, web}.
That said though, we're also on a rather old version at RESTEasy with resteasy-jaxrs at 3.15.3.Final so it would be worthwhile at least getting this closer (say 4.7.x) in preparation.
edalex-ian
changed the title
Unable to upgrade to latest Tomcat - Spring framework and RestEasy don't support Tomcat 10
Unable to upgrade to latest Tomcat - Requires Spring 6.x+
Jan 11, 2022
Describe the bug
When attempting to upgrade Tomcat from 9.0.46 to 10.0.6 for #2685, I quickly found that in order to run this upgrade we would also need to upgrade Spring framework and RESTEasy - they use the javax.servlet classpath, which is incompatible in Tomcat 10 which migrates to use jakarta.servlet.
However, there are as of yet no released versions of either library that use the jakarta.servlet classpath. Because of this, it is impossible to update Tomcat to 10 without breaking RESTEasy and Spring framework, until both libraries do work to support Tomcat 10.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We need to wait until stable versions of org.springframework and resteasy are released that have support for jakarta.servlet classpaths, and then we can upgrade both of those and Tomcat.
See also: spring-projects/spring-framework#25354
Platform:
Additional context
Another slight problem with upgrading Tomcat is that the JDBCStore which has been deprecated for multiple versions is finally removed, and openEQUELLA relies on this JDBCStore in the TomcatServiceImpl. We will need to migrate to use the new (JNDI) format.
The text was updated successfully, but these errors were encountered: