-1

I have a project in java. Which was currently running in Tomcat-7, JAVA-8 and postgres-9.3. I updated it to openjdk-11 and postgres-13 and tried to deploy it in tomcat9, but it is giving this error.

 javax.servlet.ServletException: java.lang.NoSuchMethodError: 'java.lang.Object 
  org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(java.lang.String, java.lan$
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:666)
    at org.apache.jsp.layout1_jsp._jspService(Unknown Source)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)

I have tried solutions like playing with versions of jar in my WEB-INF/lib folder, but didn't work.

Also tried this and this solutions.

Yesha Dave
  • 171
  • 1
  • 1
  • 7

1 Answers1

1

You should clean the $CATALINA_BASE/work directory of your Tomcat installation. You clearly have *.java and *.class files there which were compiled with the Tomcat 7 version of Jasper.

Before deleting the files, stop Tomcat.

This should solve your NoSuchMethodError, but the exception that triggered this message is still in your JSP. As remarked by Scary Wombat, you should consider using only EL expressions and JSTL tags in your JSP pages.

Piotr P. Karwasz
  • 12,857
  • 3
  • 20
  • 43