aspose file tools*
The moose likes JSP and the fly likes Incompatible object argument for function call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Incompatible object argument for function call " Watch "Incompatible object argument for function call " New topic
Author

Incompatible object argument for function call

Manasvi Chowdary
Greenhorn

Joined: Aug 13, 2002
Posts: 8
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

Joined: Mar 22, 2002
Posts: 1055
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

Joined: Aug 13, 2002
Posts: 8
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.
 
subject: Incompatible object argument for function call