Hi, 2015-04-21 6:42 GMT+03:00 Thusitha Thilina Dayaratne < thusithathil...@gmail.com>: > > Hi, > > > Could someone tell me what is the purpose of having WebappLoader and > > WebappClassLoader in Tomcat? > >>WebappLoader is the Tomcat object that a user can configure that > >>represents the class loader. It remains the same across web application > >>stop/start. > > >>WebappClassLoader is the actual class loader. Every time the web > >>application is started, a new instance is created and used. > > > As I understand WebappClassLoader is per web application and WebAppLoader > for > > tomcat server instance. Am I wrong? > >>Yes. > Thanks for the quick explanation. > So it means WebappClassLoader and WebAppLoader both are per web > application. > In tomcat 7 we were able to add repository to the class loader using > WebAppClassLoader.addRepository()
This is replaced in favor of the new resource implementation. Check this [1] and this [2]. Regards, Violeta [1] http://tomcat.apache.org/migration-8.html#Web_application_resources [2] http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html > So in Tomcat 8 if we wanna add repositories to the classloader we should > done that trough the WebAppLoader not with WebAppClassLoader? > Please correct me if I'm wrong. > > Thanks > Best Regards > > 2015-04-21 1:51 GMT+05:30 Mark Thomas <ma...@apache.org>: > > > On 20/04/2015 14:22, Thusitha Thilina Dayaratne wrote: > > > Hi, > > > > > > Could someone tell me what is the purpose of having WebappLoader and > > > WebappClassLoader in Tomcat? > > > > WebappLoader is the Tomcat object that a user can configure that > > represents the class loader. It remains the same across web application > > stop/start. > > > > WebappClassLoader is the actual class loader. Every time the web > > application is started, a new instance is created and used. > > > > > As I understand WebappClassLoader is per web application and > > WebAppLoader for > > > tomcat server instance. Am I wrong? > > > > Yes. > > > > Mark > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > > --