File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to fix the java.lang.VerifyError in a Tomcat 7 webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to fix the java.lang.VerifyError in a Tomcat 7 webapp" Watch "how to fix the java.lang.VerifyError in a Tomcat 7 webapp" New topic
Author

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

Anjaiah Setty
Greenhorn

Joined: Jul 12, 2005
Posts: 3
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to fix the java.lang.VerifyError in a Tomcat 7 webapp
 
Similar Threads
Problem using taglib with Tomcat4.0...
Incompatible object argument for function call
Tomcat 7 not loading classes/jars in Web-Inf
java.lang.VerifyError
java.lang.verifyError;Illegal target of jump or branch