tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pabst <simon.pa...@web.de>
Subject Re: per-context classpaths?
Date Sun, 20 Jul 2003 18:48:27 GMT
Sure thing, just use two different directories for the test and production 
webapp
and put the jar files in

  /path/to/webapp-test/WEB-INF/lib
and
  /path/to/webapp-prod/WEB-INF/lib

and use two different Contexts:
<Context path="/test" docBase="/path/to/webapp-test" ...

<Context path="/prod" docBase="/path/to/webapp-prod" ...


At 14:33 20.07.2003 -0400, you wrote:
>Hello,
>
>Is it possible to have different classpaths based on context definitions
>in server.xml?
>
>I'm asking because I have an 3rd-party JAR file which comes in two
>versions: testing and production. Unfortunately the vendor has named
>both JAR files the same -- it's just the classes inside that are
>different. I'd like to install them in different directories for each
>virtual host (test and production) and use the classpath to
>differentiate them.
>
>Are there any better suggestions as to how to approach this?
>
>Thanks,
>Gil
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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


Mime
View raw message