How to use a common library for multiple Java Web projects
I have four different projects and I am using Weblogic to deploy my project Several libraries (JAR files) are common to all projects At present, each of my projects has a lib directory and almost the same library set Now, can you put this lib directory outside the war files and access them
Solution
Resist the temptation to put jar files in the "shared" folder of the container It is best to save the jar file in its current location Using shared folders may sound good now, but you may need to deploy different versions of applications that require shared libraries in the future
Having said that, I don't have Weblogic experience In tomcat, there is a shared folder containing common libraries for all deployed applications It's not a good idea to use it If Weblogic can be configured to use shared folders as a set of applications instead of all deployed applications, it can be used