• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Incompatible object argument for function call

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah! I am recompiling the JSPs (as U said), even after that I am getting that problem.
Thanks
-Manasvi
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic