tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <Simon.Kitch...@orange.ch>
Subject RE: adding jar to context's classpath (but not to ALL contexts... )
Date Mon, 02 Oct 2000 18:32:31 GMT


> -----Original Message-----
> From:	Woods, Jason [SMTP:jason.woods@vignette.com]
> Sent:	Monday, October 02, 2000 8:05 PM
> To:	'tomcat-user@jakarta.apache.org'
> Subject:	adding jar to context's classpath (but not to ALL
> contexts...)
> 
> 
> 
> Is there a way in Tomcat to add a jar file to a context's classpath
> (available to all servlets/etc. within that context) on a per-context
> basis
> (as opposed to editing the tomcat.properties file and adding a
> wrapper.classpath prop - which makes it available to all contexts)?
> 
> This seems like a pretty simple thing to do which other servlet containers
> allow you to do - but I can't find any place to do it based on info in the
> server.dtd or web.dtd.
> 
> Interested in answers for both 3.1 & 3.2.
> 
> 
> Thanks,
> 
> - Jason
	[Kitching Simon]  

	You just put the jar file in webappcontext/WEB-INF/lib.
	Tomcat adds this jar automatically to the web application.
	This applies to both 3.1 and 3.2.

	This is documented in the sun servlet specifications at least..

	Regards,

	Simon


Mime
View raw message