Tomcat docs says that “Normally, application classes should NOT be placed here: $CATALINA_BASE/lib“. I figured that app JARs that are shared between webapps should be placed instead some other place defined as shared.loader= in the catalina.properties.
Can someone shed some light on what is the difference between these two places (common and shared)? Doesn’t the common loader loads the classes from both place?
And what could possibly go wrong if do not set up a shared place but I put shared application JARs into $CATALINA_BASE/lib?
Thanks
I wouldn’t put JARs in shared location at all if possible. If you do,
You hardly ever save enough memory or disk space to compensate for these disadvantages.