This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Sharing problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Sharing problems" Watch "Sharing problems" New topic

Sharing problems

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
Hi all,

There is a jar file which is being used by two separate modules in my project. These two modules constitute 2 separate folders in my tomcat webapps folder. The jar is placed in the lib folder of one of the modules. The classpath has been set appropriately in the .bash_profile of tomcat. If i restart my tomcat and try to access the classes (in the two modules) that uses the same jar, the one that has been accessed first works and the other says unsatisfied link error.

Please help in this regard.

Am not a pro and thats why am here!!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41034
Tomcat does not use the system CLASSPATH. What it does exactly is described in the documentation. It's best not to try to work around these mechanisms. You'll probably end up putting the jar in the "shared" directory.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: Sharing problems
Similar Threads
problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0
Using Multiple DynaActionForms in same JSP
Ant building error
Common Libraries for two tomcat instance
JSTL with Tomcat 6?