On Thu, 22 Aug 2002, vtr wrote:

> Hi I have Tomcat running over apache on a unix machine. When I have
> some class file kept in the WEB-INF/classes/ folder the server is
> unable to detect it whereas the tomcat mannuals say that if you have
> class files keep in classes and if you have jar file keep in lib.
> Please help me....

Make sure that the class files are organized by package under
WEB-INF/classes.

For example, suppose you have a class called com.foo.MyClass.  This
results in a class file named MyClass.class, which should appear as

  WEB-INF/classes/com/foo/MyClass.class

within your web application.  (Then, ensure your application is reloaded
-- perhaps simply by restarting your container.)

Organizing classes like this can get cumbersome; you might want to look
into creating JARs (perhaps automatically with a build tool like Ant) and
installing them under WEB-INF/lib.

Best,

--
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to