tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob DeRemer <bob.dere...@thingworx.com>
Subject RE: how to use VirtualWebappLoader - either in META-INF/context.xml or programmatically on startup
Date Thu, 30 Jun 2011 15:52:56 GMT
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.kolinko@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.deremer@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


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


Mime
View raw message