tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Bergsten <h...@gefionsoftware.com>
Subject Re: Tomcat and .zip files.
Date Fri, 01 Sep 2000 20:49:15 GMT
"Craig R. McClanahan" wrote:
> 
> "Voronoff, George" wrote:
> 
> >
> >
> > Can someone confirm or deny this for me.
> > It appears to me that tomcat does not at
> > .zip files to its classpath.  If I place
> > foo.zip into webapps/myapp/WEB-INF/lib
> > tomcat will not find it.  If I unzip
> > and then jar it up into a jar file
> > tomcat finds it just fine.
> >
> 
> This behavior (recognizing JAR files in WEB-INF/lib) is what the servlet
> specification requires.  Therefore, Tomcat recognizes only JAR files
> that are placed there.

That's right. But to minimize the pain, you only have to rename the
file to use the .jar extension. ZIP and JAR use the same file format,
so there's no need to first "unzip" and then "jar".

Hans
-- 
Hans Bergsten		hans@gefionsoftware.com
Gefion Software		http://www.gefionsoftware.com

Mime
View raw message