*
The moose likes JSP and the fly likes Method not found error - why? 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 "Method not found error - why?" Watch "Method not found error - why?" New topic
Author

Method not found error - why?

Clive van Hilten
Greenhorn

Joined: Feb 13, 2002
Posts: 18
Hi all
Using jdk1.3.0_02 on Windows 2000.
*all code has been posted as plain text at http://ariel.mit-misys.com/javaranch for the sake of keeping this post short and clean*
When I call the following code
logon.revalidate(strId);
from revalidate.jsp, the compiler complains as follows: "Method revalidate (java.lang.String) not found in class ariel.LogonBean"
and also "Method getRevalidationError (java.lang.String) not found in class ariel.LogonBean" when it hits the code
if (logon.getRevalidationError() == true)
However, when I call the following code from signon.jsp, all works fine:
signon.validate(un, pw).
I point out this fact simply to show that the classpath must be correct, as both JSP files use the same bean - ariel.LogonBean.
Could anyone please help?
Many thanks.
Clive
Clive van Hilten
Greenhorn

Joined: Feb 13, 2002
Posts: 18
Hello, anybody out there? Please, any replies??
Clive
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Hello Clive,
I took a look at your code a few days ago. I haven't commented because I couldn't identify any problems. It all seemed straight forward and probably correct.
Perhaps someone over in the JSP forum would notice something.
Give it the rest of the day here, then we'll move it to the JSP forum.
Good Luck.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Dirk Schreckmann:
Hello Clive,
I took a look at your code a few days ago. I haven't commented because I couldn't identify any problems. It all seemed straight forward and probably correct.
Perhaps someone over in the JSP forum would notice something.
Give it the rest of the day here, then we'll move it to the JSP forum.
Good Luck.
I second this ( although I am far from a JSP guru ). The only thing I could think of would be non-code related. Is there anyway that the program is finding an older version of the class somewhere else??
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
As Jamie has suggested, I'd delete all class files and recompile everything, before we move this to JSP.
So, still the same problem even after recompiling?
[ April 25, 2002: Message edited by: Dirk Schreckmann ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Hopefully someone over in the JSP forum has a clue...
Brian Glodde
Ranch Hand

Joined: Jun 27, 2001
Posts: 171
The first course of action is definitely to delete and recompile. Let us know the outcome.
 
 
subject: Method not found error - why?
 
Similar Threads
System.setProperty method not recognized?
weblogic 8+JNDI
Incomplete javadoc for com.javaranch.common.ServletData
ERROR: Error from ejbc
cant find constructor in packaged jar