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?
19 <Context>
20
21 <!-- Default set of monitored resources. If one of these changes, the
-->
22 <!-- web application will be reloaded.
-->
23 <WatchedResource>WEB-INF/web.xml</WatchedResource>
24 <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
25 <Loader className="org.apache.catalina.loader.WebappLoader"
delegate="true" searchExternalFirst="true"/>
Regards,
Aditya