Ken Pullin wrote:
>
> Hi - when I add a method to my bean and try to call the method in my
> servlet, I'm getting a java.lang.NoSuchMethodError.  [...]
> The method setKen() was added to the bean.  I've stopped and restarted the
> appserver(Websphere) and webserver(IIS 4.0), but the changes are just not
> being seen.  I've also deleted the .class file completely off of the server
> and I'm not getting the ClassDefNotFound Error.

I've seen this with ServletExec, and finally found the cause.
Somehow (I'm still not sure how, though it hasn't happened again)
my bean class was copied into the Servlets directory, and
ServletExec was looking there first before looking through the
rest of the classpath, where it would have found my updated class
files. I just deleted the class file (and supporting package
directories) from the Servlets directory and it worked fine and
hasn't copied it there again.

Obviously your mileage may vary with WebSphere, but maybe
something similar is happending there.

John L

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to