tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woods, Jason" <jason.wo...@vignette.com>
Subject RE: adding jar to context's classpath (but not to ALL contexts... )
Date Mon, 02 Oct 2000 19:02:58 GMT

But that would give me the same result as if I had modified the
tomcat.properties file - the jar would be available to all servlets in all
contexts.  What I need is the ability to modify the classpath at the context
level.


- Jason


-----Original Message-----
From: Josh Knowles [mailto:josh.knowles@worldwidepackets.com]
Sent: Monday, October 02, 2000 1:56 PM
To: 'Woods, Jason'; 'tomcat-user@jakarta.apache.org'
Subject: RE: adding jar to context's classpath (but not to ALL
contexts... )


What about just putting them in tomcat/lib ... then they would be available
to all of the servlets.

Josh

-----Original Message-----
From: Woods, Jason [mailto:jason.woods@vignette.com]
Sent: Monday, October 02, 2000 11:44 AM
To: 'Josh Knowles'; 'tomcat-user@jakarta.apache.org'
Subject: RE: adding jar to context's classpath (but not to ALL
contexts... )



Actually, I forgot to mention I didn't want to put the jar file into the
WEB-INF/lib directory.
There are various reasons I don't want to do this, and one of them is that
the jar file may be used by multiple contexts (but not all contexts) - so I
don't want multiple copies of the jar file floating around everywhere.

- Jason


-----Original Message-----
From: Josh Knowles [mailto:josh.knowles@worldwidepackets.com]
Sent: Monday, October 02, 2000 1:30 PM
To: 'tomcat-user@jakarta.apache.org'; 'jason.woods@vignette.com'
Subject: RE: adding jar to context's classpath (but not to ALL
contexts... )


I am not sure if this answers your question but you can put jar files inside
of the WEB-INF/lib directory for each context and they will show up in the
classpath.

hope this helps,

Josh Knowles

-----Original Message-----
From: Woods, Jason [mailto:jason.woods@vignette.com]
Sent: Monday, October 02, 2000 11:05 AM
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

Mime
View raw message