On 26/05/2015 08:36, Aditya Chopra wrote: > Hi, > > To reduce the size of my war file, i am trying to put all the jar files being > used by my web app in a separate folder /mylibs. I added path to /mylibs > folder under shared.loader property in catalina.properties but on runtime i > am getting a ClassNotFoundException for one of the classes that is present in > one the project module jar under WEB-INF/lib folder. > > When i add all the libraries required by my project in WEB-INF/lib folder my > application works fine. However, when i put the libraries in a separate > /mylibs folder i get a ClassNotFoundException on runtime. > > I suspect that it could be due to order in which the classes are being > loaded, so added a Loader component in my context.xml as below, but that too > didn’t work. Can someone please help me on this?
JARs in /mylibs must not depend on JARs in a web application. There is no configuration option that would enable you to bypass this restriction. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org