On Wed, 18 Jul 2001, Aditya Anand wrote:

> > However, every time I hit a JSP page, it gives a 500
> > error about how it
> > cannot find classes to compile.  Those classes are
> > located in the WEB-INF
> > directory, under the /classes folder.  
> 
> I assume these are your bean classes. These should be
> put under the WEB-INF/lib directory rather than the
> classes directory. The classes directory is ment only
> for un-jarred servlet classes that have been declared
> in the web.xml file.

Actually, just to make things interesting, those *are* servlet
classes.  We have both servlets and JSP's that use library classes for
various things.  Currently, they live in WEB-INF/classes.  One of these
years we'll get things sorted out a bit better.

> Put any servlet jars, beans, and required
> non-statndard libraries under the lib folder (like
> log4J, or xalan)

Ok, so I created a jar file with the servlet classes and library classes
in it and moved it to WEB-INF/lib.

Didn't work.

I cannot put this .jar file in TOMCAT_HOME/lib -- each context / virtual
host will have slightly different bits in the servlets.

Will

Reply via email to