You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Ryan P. Davidsen" <rd...@ptc.com> on 2002/05/10 23:14:44 UTC
Multiple webapps, multiple classpaths
I am currently deploying multiple tomcats for multiple applications (1:1)
such as:
application1-->tomcat1
application2-->tomcat2
I would like to share a single instance of tomcat but have multiple contexts
registered (/application1 and /application2)
The problem is that application1 and application2 need to have seperate
classpaths (due to conflicting codebases). Is there any way to deploy
multiple contexts to compile from different classpaths? Right now my
classpaths are being set in the tomcat startup script - I would like to have
something like:
<Context path="/Application1" docBase="D:\application1\root" debug="0"
reloadable="false"
classpath="D:\application1\codebase,D:\etc">
</Context>
Is there a way of accomplishing this some other way?
RE: Multiple webapps, multiple classpaths
Posted by "Ryan P. Davidsen" <rd...@ptc.com>.
That approach helps somwhat, but I am still compiling with a classpath of
/application1/codebase for /application1 and /application2/codebase for
/application2
This works great for all the 3rd party jars that I need relative to each
application but the applications themselves have totally different codebases
that are currently set in the classpath used in the startup.bat
-----Original Message-----
From: Jeff Larsen [mailto:larsen@qec.com]
Sent: Friday, May 10, 2002 4:34 PM
To: Tomcat Users List
Subject: Re: Multiple webapps, multiple classpaths
Put the dependent external jar files in /application1/WEB-INF/lib
and /application2/WEB-INF/lib.
Jeff
----- Original Message -----
From: "Ryan P. Davidsen" <rd...@ptc.com>
To: <to...@jakarta.apache.org>
Sent: Friday, May 10, 2002 4:14 PM
Subject: Multiple webapps, multiple classpaths
> I am currently deploying multiple tomcats for multiple applications (1:1)
> such as:
>
> application1-->tomcat1
> application2-->tomcat2
>
> I would like to share a single instance of tomcat but have multiple
contexts
> registered (/application1 and /application2)
>
> The problem is that application1 and application2 need to have seperate
> classpaths (due to conflicting codebases). Is there any way to deploy
> multiple contexts to compile from different classpaths? Right now my
> classpaths are being set in the tomcat startup script - I would like to
have
> something like:
>
> <Context path="/Application1" docBase="D:\application1\root" debug="0"
> reloadable="false"
> classpath="D:\application1\codebase,D:\etc">
> </Context>
>
> Is there a way of accomplishing this some other way?
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Multiple webapps, multiple classpaths
Posted by Jeff Larsen <la...@qec.com>.
Put the dependent external jar files in /application1/WEB-INF/lib
and /application2/WEB-INF/lib.
Jeff
----- Original Message -----
From: "Ryan P. Davidsen" <rd...@ptc.com>
To: <to...@jakarta.apache.org>
Sent: Friday, May 10, 2002 4:14 PM
Subject: Multiple webapps, multiple classpaths
> I am currently deploying multiple tomcats for multiple applications (1:1)
> such as:
>
> application1-->tomcat1
> application2-->tomcat2
>
> I would like to share a single instance of tomcat but have multiple contexts
> registered (/application1 and /application2)
>
> The problem is that application1 and application2 need to have seperate
> classpaths (due to conflicting codebases). Is there any way to deploy
> multiple contexts to compile from different classpaths? Right now my
> classpaths are being set in the tomcat startup script - I would like to have
> something like:
>
> <Context path="/Application1" docBase="D:\application1\root" debug="0"
> reloadable="false"
> classpath="D:\application1\codebase,D:\etc">
> </Context>
>
> Is there a way of accomplishing this some other way?
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>