tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup
Date Thu, 30 Jun 2011 23:17:27 GMT
2011/7/1 Christopher Schultz <>:
> On 6/30/2011 11:27 AM, Konstantin Kolinko wrote:
>> 2011/6/30 Bob DeRemer <>:
>>>           virtualClasspath="/WEB-INF/lib/extensions/*.jar"/>
>> The above should be an absolute path.
>> You can use system variables, e.g.
>> ${catalina.base}/webapps/mywebapp/WEB-INF/lib/extensions/*.jar
> Hmm... does that mean that VirtualWebappLoader can't be used with paths
> inside WAR files? Being able to support paths relative to the webapp
> would be quite nice.

I think that should be some ${} property.

It either has
a) either to be given to the Digester when it parses the XML, so that
it expands the property,
b) or Digester will leave it unexpanded (because it is unknown) and
VirtualWebappLoader  will expand its value when starting.

Either way, there is a question of obtaining this path early and
passing this information around.

Regarding the issue that I mentioned:

It looks that the following (without "lib") will work:

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message