This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Tomcat does not find my custom method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat does not find my custom method" Watch "Tomcat does not find my custom method" New topic
Author

Tomcat does not find my custom method

ron cola
Greenhorn

Joined: Feb 21, 2003
Posts: 3
I am new in JSP and I had some custom made libraries.
When I call the old methods everything worked fine.
I add new methods
first, were not find by tomcat.
I shuted down the tomcat server,
I compiled the library.
I started tomcat once again, but I get.
java.lang.NoSuchMethodError: addIndex
I added the same code on the command line (the call to the method) and in the JSP page.

if I embeed this code on the jsp page, it works fine.
What I am doing wrong???
Thanks for your help
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65


This error usually means that the method was found during compilation, but not at run-time. So, first thing to do is to be absolutely sure that your new class is making its way to the right place for Tomcat to pick it up as part of the classpath.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ron cola
Greenhorn

Joined: Feb 21, 2003
Posts: 3
I think must be there. I have a made a ln to the
/WEB-INF/classes/MyLib and the class is there.

I did rm *.class
I recompiled all
I tried this method from the promt line (my path is taken from )
set PATH=${JAVA_HOME}/bin:${PATH} (but this is for the prompt version).
I don't know how tomcat works for that.
old methods works, but not the new one.
must be something trivial, but I can't find the clue.
Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
I started tomcat once again, but I get.
java.lang.NoSuchMethodError: addIndex

Exactly where did that message appear? In a log file, on the console screen, in a web page? When did it appear? When Tomcat started, when a page was accessed?
Bill
ron cola
Greenhorn

Joined: Feb 21, 2003
Posts: 3
Originally posted by William Brogden:

Exactly where did that message appear? In a log file, on the console screen, in a web page? When did it appear? When Tomcat started, when a page was accessed?
Bill

It comes when you call the jsp page that have the "new" method.
and the error is catch by this page
<%@ page isErrorPage="true" %>

here is when I get the message from.
 
wood burning stoves
 
subject: Tomcat does not find my custom method
 
Similar Threads
Creating HtmlCommandButton and HtmlForm in a custom tag
jsp pages not executing
Troubles when using my own XMLFilterImpl sub class
Exception while using attribute in tag file
How to map non - *.jsp files to be served as regular JSP pages?