I'm running a tomcat 8 server where I'm deploying several tapestry webapps. When I build the war files with maven, all dependencies (including the tapestry framework jars) are packaged into WEB-INF/lib. So I have the tapestry jars in every single war. As far as I know, tomcat uses a different classloader for every war file so maybe I'm using more memory resources than needed, and that is my concern.
What I've done is to deploy the tapestry jars into ${catalina.base}/lib/tapestry and to update catalina.properties accordingly so that tomcat load the jars inside this directory. Also, I changed the maven dependencies of my projects so that tapestry libraries are not packaged into WEB-INF/lib. It seems to work. But I wonder if there is something wrong with this way of working that may bring problems in the future. Nobody seems to be doing it that way: I couldn't find any information in the tapestry website about whether this is a good or bad policy and why. Does anybody know it?