Re: Class files for jsp

From: Raymond DeCampo (rdecampo_at_spam-I-am-not.twcny.rr.com)
Date: 12/13/03


Date: Sat, 13 Dec 2003 04:01:57 GMT

Harold Ensle wrote:
> I am using Jserv on apache and I cannot instantiate from a class file in
> JSP.
> I was using servlets before and any class I put in the same directory (or
> other directories indicated with a classpath in the Jservproperties file)
> would work fine. But JSP files (which are in a different directory) cannot
> seem to find my classes no matter where I put them...whether in a classpath
> or not. I even put them in the WEB_INF/classes folder and still nothing.
> I have searched everywhere for an answer. Does anyone know???
>
Harold,

Perhaps you should post some sample code and describe the directory
structure of your WAR. One question comes to mind however: did you
import the desired classes with <@page import="" @> ?

Ray



Relevant Pages

  • RESOLVED - but can this be true?? (Re: JSP silently fails to compile)
    ... If I happen to write a JSP page, ... to the java file must have failed. ... corresponding class file was simply missing. ... get an error message if I write something which is not syntactically ...
    (comp.lang.java.programmer)
  • Re: jar, package and import relationship?
    ... Java does too: the CLASSPATH must be correct. ... It's a bit different for anything that comes with the default with Java, because the JVM handles those a bit differently with out environment variables, but for any library or .class file you download or create, you need to tell your tools where to find them. ... public static void main(String ... ...
    (comp.lang.java.programmer)
  • bad class file: D:examplesHello.class
    ... I am just posting this message so that it might be useful for people ... I was trying to compile the java with following code as in Mastering ... illegal start of class file ... as to me the classpath seemed to be perfectly ...
    (comp.lang.java.programmer)
  • Re: Class files for jsp
    ... > Harold Ensle wrote: ... >> I am using Jserv on apache and I cannot instantiate from a class file in ... Now the JSP is acting like it finds the class ... but it is saying there is no constructor of the type to be found. ...
    (comp.lang.java)
  • Re: Baffling class not found problem
    ... I cannot argue against your assertion that *a* classpath contains the parent directory of cms/, but either *the classpath relevant to the compilation* in question does not contain it, or the directory does not contain the relevant class. ... The previous response I directed you to described specifically how to structure the jar containing the class, ... An alternative, supposing that the directories are correct and the class file is in the right place, might be that access control prevents the compiler from reading the class file. ...
    (comp.lang.java.programmer)