Issue
I'm trying to migrate an old app from tomcat7 / Java 8 to tomcat9 / Java 11. I receive this weird error when I launch the app, which I cannot explain:
javax.servlet.ServletException: java.lang.NoSuchMethodError: 'void org.apache.jasper.runtime.JspContextWrapper.<init>(javax.servlet.jsp.JspContext, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList, java.util.Map)'
I don't know much about tomcat/jsp so I really don't know what could be wrong.
I feel it could be a OS (debian) problem / dependency management issue , but I'm not so sure. This question seems related, but remained unsolved.
Any ideas on how to figure out what could be wrong ?
Solution
Delete the content of the $TOMCAT_BASE/work
folder (not the folder itself).
That will force recompilation of all JSPs, and discard any other stale cached information.
You might as well clear the content of the $TOMCAT_BASE/temp
folder while you are at it.
Tomcat should of course be shut down when clearing folders.
Answered By - Andreas Answer Checked By - Mildred Charles (WPSolving Admin)