On 29/04/2015 17:50, Ashish Kumar Singh wrote:
> All,
> 
> I wanted to gather some help and feedbacks in configuring a custom class 
> loader with tomcat –8.
> We were using a custom class loader with Tomcat 6 & 7 successfully  which is 
> used to load custom jars from some common locations outside tomcat in our 
> case.
> APIs being used for this seems to be removed with tomcat 8 as part of 
> restructure in this area , and we need some guidance/examples/pointers  here 
> to move further.
> 
> Please note with Tomcat 6 & 7 we were able to override 
> WebappLoader.setContainer(Container container)  method to add new jars , we 
> need some pointers to achieve the equivalent with tomcat 8.
> Thanks for your attention!

Use the new WebResources implementation to map those external JARs to
JARs in WEB-INF/lib. You can either map a directory of JARs to
WEB-INF/lib or individual JARs to WEB-INF/lib/name-of-jar.jar

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to