• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method not found error - why?

 
Clive van Hilten
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, anybody out there? Please, any replies??
Clive
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hopefully someone over in the JSP forum has a clue...
 
Brian Glodde
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first course of action is definitely to delete and recompile. Let us know the outcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic