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.
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.