tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: [Tomcat4] Migrating from M1 -> M2 - Issues & solutions
Date Tue, 10 Oct 2000 17:43:17 GMT
Marcus Crafter wrote:

> On Tue, 10 Oct 2000, James Cook wrote:
>
> > ----- Original Message -----
> > From: "Vincent Deconinck" <vincent.deconinck@cplus.be>
> > > Second, as TC4 looks for jars in the lib directory instead of using the
> > > classpath, I had moved the necessary files there and simply renamed .zip
> > > files to .jar for M1, and it worked. For M2, though, all I got was an
> > > "IllegalArgumentException: addRepositoryInternal:
> > > java.lang.NullPointerException
> > > at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
> > > StandardClassLoader.java, Compiled Code)"... So before migrating to M2,
> > > unzip all your zips and jar them up.
> >
> > I get the same exception, however I have standard JAR files in my lib directory.
>

Stack traces would be really helpful!

>
>         Which lib directory ? Tomcat 4.0M2 loads the jar files from the web
>         application's lib directory (ie /context/WEB-INF/lib), and not the
>         jakarta-tomcat/lib directory as it previously did.
>

It actually loads JAR files from both places.

The JAR files in $CATALINA_HOME/lib are made visible to all webapps, while the JAR
files in the WEB-INF/lib directory are visible only to that particular webapp.

>
>         What is does now is correct behaviour, as described in the servlet
>         spec.
>
>         Cheers,
>
>         Marcus
>

Craig

====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat



Mime
View raw message