Recently, I have upgraded my application library to use spring 6, tomcat 10. But some of the library still using the old ones like sitemesh.
When running application, i got error the java.lang.NoClassDefFoundError: javax/servlet/Filter.
Since tomcat 10 and spring 6 using jakarta instead of javax, sitemesh library was not able to find the needed class.
How to workaround this when I also using servlet-api 6 for ContextListener?
I have checked the sitemesh jar file, the latest being 2.4.2 which the version I'm currently using.