I am working with a team of programmers developing web applications for a J2EE Application Server (currently using JBoss but switching to GlassFish in the near future). We were wondering whether we should install the libraries used by our applications on the J2EE server itself or package these libraries with every .war file that we deploy to the server.
The obvious advantage of installing the libraries on the server in a common location is much lighter-weight application packages, but on the other hand we want to ensure that we won't run into problems down the line when we want to use newer versions of these installed libraries.
I realize this question really doesn't have an answer per se but I feel as if there is definitely a right or wrong way to go about doing this.