One thing you might wanna check is the argument types of the method and return
value if you are accessing it.
For ex if getMessage has a string argument and you calling it without the
argument you will get the method not found error
because the function declaration does not match the call.Check the scope of the
method too.
The error isn't exactly "Method does not exist" , but "method
declaration does not match call" . The error message is not very descriptive . I
have been through similar errors before , it may not necessarily be the same in
your case, you can try it though
Santosh
Dave McHale <[EMAIL PROTECTED]> on 02/13/2001 10:59:33 AM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: JSP, JRun, and Beans
hi,
I'm running a simple test.jsp file on our JRun server, everything has been
working fine until I try and use beans. I can compile the file fine, put the
class file on the server, and make sure that the classpath includes the
directory where I'm storing the class. (well, the directory where I'm
storing the subdirectory, since the class is in a package) So my class file
is in d:\jrun\jsm-default\classes\dave directory. Any time I try and use the
bean, I get a 500 error saying
Found 1 semantic error compiling
"d:/Jrun/jsm-default/services/jse/servlets/jsp/javadev/ravage/test.java":
89. test.getMessage();
<--------------->
*** Error: No method named "getMessage" was found in type
"jsp/javadev/ravage/test"
the getMessage method EXISTS, the classpath is set properly (from what I can
tell) and I see nothing glaring that I have done wrong. *Please* reply if
you can help me, this is becoming more annoying than simply frustrating.
Thanks in advance for any help. Below is the entire contents of my
Bean........
-Dave
package ravage;
public class SimpleBean {
private String message = "No message specified";
public String getMessage() {
return(message);
}
public void setMessage(String message) {
this.message = message;
}
}
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets