Thanks Konstantin, but that didn't do it.  I can see that Tomcat copies the 
context.xml over to <tomcat>/conf/Catalina/localhost and names it 
<mywebapp>.xml.  Is there any way to printout the classpath my webapp is using 
in the context of tomcat - to try and debug this?

The exact contents is:

<Context path="/Bob">
        <Loader className="org.apache.catalina.loader.VirtualWebappLoader"
                  
virtualClasspath="${catalina.base}/webapps/Bob/WEB-INF/lib/extensions/*.jar" />
</Context>

Do I need to do anything programmatically to enable this?

-bob

-----Original Message-----
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Thursday, June 30, 2011 11:27 AM
To: Tomcat Users List
Subject: Re: how to use VirtualWebappLoader - either in META-INF/context.xml or 
programmatically on startup

2011/6/30 Bob DeRemer <bob.dere...@thingworx.com>:
>           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

---------------------------------------------------------------------
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

Reply via email to