Apache Tomcat 5.5 - where do you put the jars?

I am upgrading from Apache Tomcat 4.1.18 to 5.5.

I copied a web application for test and it does not recognize the jars stored in WEB-INF/lib. Should I put them somewhere else? Should I do something more to tell him that I installed that application?

(Tomcat Manager recognizes that a new application was added.)

Thanks

[344 byte] By [actodeaa] at [2007-11-26 18:54:36]
# 1

I tryied also to deploy it by WAR upload and the results are the same.

It does not find the classpath jars.

I also put the files in the servers's lib directory and I also put the class files in "classes" (of course this time not as a jar archive).

Still: "package aaa.bbb does not exist"

actodeaa at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Try putting the jars in ...\tomcat\common\lib\ and ...\tomcat\shared\lib\ [/pre
brandooa at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

thanks but it still doesn't work.

I get the same "package ... does not exist".

I have the packages now as jar in the WEB-INF/lib, tomcat/shared/lib and tomcat/common/lib and also the classes in all 3 classes directories.

I restarted, deleted the "work" directory and everything.

any thoughts?

actodeaa at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I got it working putting the files in share/lib and only there.thanks
actodeaa at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Ure welcome! I'm glad it worked out!I had that problem long time ago and I forgot exacly how I solved....I knew it was one beetwen shared and common directories.
brandooa at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

I'm glad your problem is solved, but just as an FYI , Tomcat 5.x should also be able to pick up JAR files located under your application's

WEB-INF/lib/ folder too.

Make sure that the JAVA_HOME environment variable is set the main directory of where you installed Java and CATALINA_HOME environment to Tomcat's main directory

If you have a <Context>.xml file under

C:\dev\apache-tomcat-5.5.12\conf\Catalina\localhost\

simply change the docBase , that way whenever you upgrade Tomcat you'll only have to change the docBase of your project and not worry about anything else.

This: http://tomcat.apache.org/tomcat-5.0-doc/config/context.html has details on Context parameters.

appy77a at 2007-7-9 20:32:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...