Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to fix the java.lang.VerifyError in a Tomcat 7 webapp

 
Anjaiah Setty
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a webapp deployed to tomcat 7 is producing a java.lang.VerifyError when the user posts credentials from the login page to another JSP (please. see Error stack trace below).

the same webapp(.war) if deployed to tomcat 5.5 works just fine. Also, other webapps work just fine on this instance of tomcat 7.

I have tried eliminating unwanted .JAR files to see if I could identify any offensive JAR however could not isolate one yet.

How should I go about identifying the cause of the java.lang.VerifyError ?

Any tips, pointers appreciated

javax.servlet.ServletException: java.lang.VerifyError: (class: org/apache/jsp/ChLogin_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Inconsistent stack height 0 != 1
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
web.AuthFilter.doFiltering(AuthFilter.java:74)
web.AuthFilter.doFilter(AuthFilter.java:58)
root cause

java.lang.VerifyError: (class: org/apache/jsp/ChLogin_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Inconsistent stack height 0 != 1
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
java.lang.Class.getConstructor0(Class.java:2699)
java.lang.Class.newInstance0(Class.java:326)
java.lang.Class.newInstance(Class.java:308)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
web.AuthFilter.doFiltering(AuthFilter.java:74)
web.AuthFilter.doFilter(AuthFilter.java:58)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic