Kevin Kenan wrote:

> I have a servlet that runs fine when it is placed as a class file in my web
> application's classes directory. However when I JAR the class and place the
> JAR file in the web application's lib directory, Tomcat does not find the
> servlet. If I place the JAR on Tomcat's classpath (in the shell script that
> starts Tomcat), the servlet runs fine.
>
> Section 9.4 (on page 43-44) of the Java Servlet Specification Version 2.2
> seems to indicate that the lib directory is the proper location for JAR
> files and implies that JAR files located in the lib directory don't need to
> be on the container's classpath.
>
> Could Tomcat's problem be related to its lack of support for class
> reloading? Or is there a element that I'm missing that should go into the
> web.xml file for my web application?
>
> Anyone have insight into this?
>

Tomcat 3.0 had a bug in the implementation of the logic to load classes from
JAR files in the WEB-INF/lib directory.  This has been fixed in the most
recent milestone release, available at the following URL:

<http://jakarta.apache.org/builds/tomcat/release/v3.1_m1_rc2>

This is the snapshot of "Milestone 1" of a plan to release Tomcat 3.1,
sometime before ApacheCon -- as described in the RELEASE_PLAN document in the
CVS source tree.


>
> Thanks
>
> -- kevin kenan
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to