Hello, My web applications is designed to plug-in 3 rd party modules. 3rd party jars and my jars would placed under WEB-INF/libs. In case of bugs, the third party developer may provide hot fixes , which would be placed under WEB-INF/classes usually. I do not want to place their hot fixes under WEB-INF/classes, as they may conflict with my hot fixes and this would create some problems during maintenance.
So I was checking the possibility of defining a new location for 3rd party hot fixes. Is there any way to do this..? Regards, Krishna -----Original Message----- From: ext Pid [mailto:p...@pidster.com] Sent: Tuesday, July 26, 2011 2:15 PM To: Tomcat Users List Subject: Re: Class loading order On 26/07/2011 09:38, Anne, Radhakrishna (NSN - IN/Bangalore) wrote: > > Hello, > > I would like to changes the default order look up for class loading, as > I understood from the doc, the order of look up is > 1) WEB-INF/classes > 2) WEB_INF/lib. > > Now I wanted to change this order and have my own order look up as shown > below i.e. > 1) /opt/shared/classes > 2) WEB-INF/classes > 3) WEB_INF/lib. > > Can someone help me out..? I am using tomcat 6 version. No, the only way to do this is via a custom classloader of your own design. It is probably a bad idea to do this - a webapp's classloader is supposed to load its own classes first. Why can't you include the classes in the webapp? p --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org