I was able to get this to work. I had a hunch, so I moved the extensions folder outside the WEB-INF directory. Any idea why these extra repositories cannot be under the WEB-INF/lib folder ?
Also, ONE OTHER QUESTION: Is there a way to have new JAR(s) that get dropped into the extensions folder picked up automatically [without] restarting the webapp or tomcat? We'd like to have the classloader actually fallback to reading from this extensions location if I can't load it normally. * would this require a custom classloader that derived from VirtualWebappLoader - so it would pickup existing extensions at startup, but could also check/load the JAR(s) dynamically if it can't load them? ** if it does require a custom classloader, can someone point me to an example of how to do this? Thanks again, Bob -----Original Message----- From: Bob DeRemer [mailto:bob.dere...@thingworx.com] Sent: Thursday, June 30, 2011 11:53 AM To: Tomcat Users List Subject: RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org