tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Héritier <aherit...@sopragroup.com>
Subject RE: AW: Classloader question
Date Thu, 20 Dec 2001 11:05:04 GMT
The simpliest solution is to rename your WEB-INF/lib/classes12.zip to WEB-INF/lib/classes12.jar
and it works.

> -----Message d'origine-----
> De:	Craig R. McClanahan [SMTP:craigmcc@apache.org]
> Date:	jeudi 20 décembre 2001 03:31
> À:	Tomcat Users List
> Cc:	Lauer, Oliver
> Objet:	Re: AW: Classloader question
> 
> 
> 
> On Wed, 19 Dec 2001, David Morsberger wrote:
> 
> > Date: Wed, 19 Dec 2001 21:19:16 -0500
> > From: David Morsberger <davidmorsberger@home.com>
> > Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > To: Tomcat Users List <tomcat-user@jakarta.apache.org>,
> >      "Lauer, Oliver" <Oliver.Lauer@AXA.de>
> > Subject: Re: AW: Classloader question
> >
> > I ran into a similar problem today that I can not explain while upgrading to
> > tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC
> > driver, classes12.zip.
> >
> > I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory
> > and then I got the NoClassDef exception.
> >
> 
> This is the expected behavior.
> 
> > I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the
> > NoClassDef exception.
> >
> 
> So is this.
> 
> > I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it
> > worked.
> >
> 
> And this.  As an alternative, if you had put the JDBC driver in a JAR file
> in the /WEB-INF/lib directory, it also would have worked.
> 
> See the Servlet Specification for more details about where web
> applications load classes from (unpacked classes under /WEB-INF/classes or
> ***JAR FILES*** under /WEB-INF/lib).
> 
> > Where should the .zip file be placed for inclusion in a bean? I recycled
> > Tomcat after every attempt.
> 
> Nowhere.
> 
> Servlet containers look for JAR files, not ZIP files.  Why Oracle persists
> in shipping their JDBC drivers in ZIP format is a mystery to me -- but the
> complaints should go to them.
> 
> Craig McClanahan
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message