tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chefo <che...@gmail.com>
Subject Access StandardContext in WebappClassLoader
Date Thu, 26 Aug 2010 13:38:17 GMT
Hi guys,

I'm using tomcat 6.0.18 adapted to osgi environment and I would like to make
the WebappClassLoader configurable so that it does not load certain packages
directly through the system class loader but use the class loader hierarchy
instead. In order to do that I have extended the standard webapp class
loader and configured the container to use the new one in the base
context.xml. I want to configure the packages through a context parameter
(separately for each webapp) or eventually through an env-entry. However I
cannot find a way to access the StandardContext instance in my
WebappClassLoader. This is probably a very simple thing to do but I'm not
really well familiar with catalina API and this is kinda driving me crazy.
Any help/suggestion is more than welcome.

Thanks in advance
Stefan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message