• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Incompatible object argument for function call

 
Manasvi Chowdary
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
I am using Jakarta-dbtags lib for accessing database from client side (jsp). It works fine with Tomcat3.0.4, but when I use the same thing in Tomcat4.0 it's falling over.
The error reads -
javax.servlet.ServletException: (class: org/apache/jsp/log$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse V) Incompatible object argument for function call
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...............
...............
java.lang.VerifyError: (class: org/apache/jsp/log$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse V) Incompatible object argument for function call at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:138) .............
..........................
..................................

I don't understand why it's happening as the only thing I did was to move from Tomcat3.0.4 to Tomcat4.0.
In web.xml, within <webapp> tag- I had the <taglib> property & value tag as the last one.
Any ideas what I am missing or where I am going wrong?? For me - It looks like to do with some conflict of jar files in Tomcat or so, but no exact idea
Any help would be greatly appreciated.Thanks.
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try recompiling your old JSPs. Force recompilation by deleting all files in the {tomcat_install-dir}\work\localhost\{context} directory. JSPs contained within the Web application are then automatically recompiled when requested through the browser for the first time.
 
Manasvi Chowdary
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah! I am recompiling the JSPs (as U said), even after that I am getting that problem.
Thanks
-Manasvi
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic