Home > Java > Sharing Libraries To Reduce WAR File Size

Sharing Libraries To Reduce WAR File Size

Tomcat allows sharing of JAR files between web applications, by placing them under $CATALINA_BASE/shared/lib. By doing so, you no longer need to include several of the common libraries when building a WAR file.

Typical candidates libraries to share :
- Spring libraries (spring.jar, spring-core.jar, spring-dao.jar, spring-jdbc.jar, etc.)
- Hibernate libraries
- Log4j

Categories: Java Tags:
  1. No comments yet.
  1. No trackbacks yet.