You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Josh <jo...@isa.net.au> on 2002/08/12 03:44:51 UTC

Weird no such method error - pulling out my hair

Ok, i've got this file here :

----------------------------------------------------------------------------
-------------
package au.com.multemedia.wf.ui;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;

public abstract class PageBase extends HttpJspBase {


 public String formcode() {

  return "\tcheck_off = new Image(13,13);\n" +
   "\tcheck_off.src = \"/images/interface/check_off.gif\";\n" +
   "\t\n" +
   "\tcheck_on = new Image(13,13);\n" +
    //Snipped some text
   "\n";

 }

}
----------------------------------------------------------------------------
-------------

and I'm using <%@ page extends="au.com.multemedia.wf.ui.PageBase" %> so I
know that the class is being imported properly, but the line

<%= this.formcode() %>

causes my page to fail with a classnotfound exception. Any idea why?
-Josh

"Rimmer, real dumplings, proper dumplings when they're properly
  cooked to perfection, proper dumplings, should not bounce."



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Weird no such method error - pulling out my hair

Posted by Stefan Langer <ma...@web.de>.
First thing first

Are all your classes on the Classpath? Is the class PageBase available in
web-inf/classes or in a jar in Web-inf/lib?

If so then it might be jsp cache problem. In other words delete your old jsp
classes and recompile them so that you are definitly having a current class
in there and you are not using an old version of your jsp. Sometimes there
is a problem with Tomcat discovering if the jsp have changed or not...

If it is neither of em ... I'm out of ideas.

A detailed setup of your webapp might help!

Stefan



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>