tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Pierazzini <make...@gmail.com>
Subject Re: weird tomcat5.0.30 behaviour with jar in WEB-INF/classes
Date Wed, 01 Dec 2004 16:33:58 GMT
On Wed, 1 Dec 2004 11:27:01 -0500, Shapira, Yoav <yoav.shapira@mpi.com> wrote:
> 
> Hi,
> 
> >> regardless of the directory being lib or classes....seems like a bug
> to
> >> me as any file in the classpath should just be a file as a jar file
> >> should have to be added to the classpath like it's a directory.
> >
> >I agree
> 
> That's overly simplified.  Unlike the classpath for a normal console
> application, the directory structure of a webapp has special meanings.
> See SRV.9.5 in the Servlet Spec, which tells you what to put in
> WEB-INF/classes and what to put in WEB-INF/lib.  If you put jars in
> WEB-INF/classes, you're at best in questionable territory.

just (re)read the specifications. you should put a jar in WEB-INF/lib
only if you want it mounted in the context classloader.
you can put classes and any other utility _file_ in /WEB-INF/classes
as well as inside any other jar in WEB-INF/lib regardless the
extension/semantics of that file.

>  If you open
> a Bugzilla issue for this, don't be surprised to see it closed as
> invalid or just left unattended.

anyway, I'll not open a bug for this issue

bye
Simone

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message