how to unify multiple contexts

2005-06-06 Thread teknokrat
We have multiple servlets that i wish to unify under a single context. That is, I want to get rid of the legacy servlets and introduce a dispatcher servlet to handle all the different functions under a single context. The problem is that this will break legacy apps that expect the old

multiple contexts

2005-05-17 Thread Oleg
Hi, I am running Tomcat 5.0.28. Our setup is somewhat similar to Virtual hosting company. When a new user signs up, user's site is accessible through localhost.com/user1 and after user registers the domain name site is also available through user1.com. My problem is that it seem to be double the

RE: Multiple contexts mapped to single docbase

2004-08-02 Thread Shapira, Yoav
[mailto:[EMAIL PROTECTED] Sent: Sunday, August 01, 2004 3:33 PM To: [EMAIL PROTECTED] Subject: Re: Multiple contexts mapped to single docbase This seems to work: [server.xml excerpted] --- !-- uses standard web.xml as deployment descriptor -- Context

RE: Multiple contexts mapped to single docbase

2004-08-02 Thread Robert Hunt
Re: multiple mappings; not exactly the point and I apologize for not specifying that 'docBase=appXyz' (in both Context/ descriptors) should be an absolute reference. The point was to have multiple contexts mapped to the same docbase, BUT, with each context having its OWN web.xml deployment

Re: Multiple contexts mapped to single docbase

2004-08-01 Thread Robert Hunt
This seems to work: [server.xml excerpted] --- !-- uses standard web.xml as deployment descriptor -- Context path=myWWW docBase=appXyz ... / !-- uses webdav.xml as deployment descriptor -- Context path=myWebDav

Multiple contexts mapped to single docbase

2004-07-31 Thread Robert Hunt
I'd like two contexts mapped to a single docbase. The first context would use default servlets (and mappings) to serve the site for regular http requests. I'd like the second context to be served by the webdav servlet, so that it could be updatable by authorized users. Both contexts need to

Accessing Multiple Contexts

2004-07-19 Thread RK
Hi I have 2 web apps configured in a single tomcat 4.1.24 server and each one's docbase is pointing to a .war file. I have two questions. 1. Is it possible to access functionality from one webapp to another one? If yes, how I can I do that. 2.

Saving on Database Pool when having Multiple Contexts

2004-07-08 Thread Eric Noel
I have multiple apps/contexts that access the same database and uses dbcp. My worry is that on each of my context i will declare the dbcp for the database, can i just declare one dbcp and each context/app can share that??? -

Controlling authentication on multiple contexts which point to the same webapp

2004-06-07 Thread Jason Saunders
If you have multiple contexts which point to the same webapp, is there a way of only applying authentication to specified contexts? e.g. something along the lines of; Context path=/webapp1 docBase=/webapps/a_web_app authenticate=true etc... /Context Context path=/webapp2 docBase

RE: Deployment with multiple contexts using the same docBase in Tomcat5

2004-01-22 Thread Shapira, Yoav
Howdy, You wouldn't. One webapp = one context = one docBase. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rick Szeto [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:38 PM To: Tomcat Users List Subject: Deployment with multiple contexts using the same

Re: Deployment with multiple contexts using the same docBase in Tomcat5

2004-01-22 Thread Rick Szeto
ChemInformatics -Original Message- From: Rick Szeto [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 4:38 PM To: Tomcat Users List Subject: Deployment with multiple contexts using the same docBase in Tomcat5 Hi, I am trying to deploy multiple webapps using the same docBase. How

RE: Deployment with multiple contexts using the same docBase in Tomcat5

2004-01-22 Thread Shapira, Yoav
Howdy, That just doesn't seem right to me. How then do you deploy branded sites without deploying the same common code(possibly different version of it) in each version of the site? I'm not sure what you mean, but why wouldn't you deploy the same common code in each version of the site?

RE: Deployment with multiple contexts using the same docBase in T omcat5

2004-01-22 Thread Hume, John - NA US HQ Delray
You do the branding dynamically in one webapp. -Original Message- From: Rick Szeto [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 10:14 AM To: Tomcat Users List Subject: Re: Deployment with multiple contexts using the same docBase in Tomcat5 That just doesn't seem right

Deployment with multiple contexts using the same docBase in Tomcat5

2004-01-21 Thread Rick Szeto
Hi, I am trying to deploy multiple webapps using the same docBase. How would I go about this? Say that I have a baseapp.war that has all the content files and java class and libraries as well as the web.xml that are common to all the different contexts. Then I would have appctx1.war,

Re: Deployment order across multiple contexts

2003-07-24 Thread tomcat-user
Hi, Why yes, the load-on-startup tag is context specific. The behavior you describe here is appropriate. Unfortunately, I don't know of a way that you can force a loading order across contexts. HTH... Rich. On Wed, 23 Jul 2003 [EMAIL PROTECTED] wrote: Hi, First, I apologize in advance, I

Deployment order across multiple contexts

2003-07-23 Thread tomcat-user
Hi, First, I apologize in advance, I am not positive I know what version of tomcat I am using. I can tell you that I am using the jwsdp1.2 package available at java.sun.com. (Sun explains on the site that jwsdp1.2 comes with tomcat 5.0, but for some reason I didn't think that's what I was using,

RE: Singleton across multiple contexts

2003-06-18 Thread Jacob L E Blain Christen
I do have a database. Databases are supposed to store data, aren't they? ;-) Yeah, which is why ... Now seriously... My application includes a web interface to a kind of workflow system. This component is the workflow engine, which is in charge for automatic (background) state changes

Singleton across multiple contexts

2003-06-15 Thread Antonio Fiol Bonnín
Hello, This question is probably not specific to Tomcat, but a Tomcat-specific answer could well suit my needs. I have an application which I have split in several different contexts. I have done so, to allow different kinds of access to the app, depending on the web server the requests are

Re: Singleton across multiple contexts

2003-06-15 Thread Tim Funk
Look in the archives and search for past Singleton discussions. http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=singletonq=b http://marc.theaimsgroup.com/?l=tomcat-devw=2r=1s=singletonq=b Otherwise ... - EJB (???) - Use a custom JNDI Factory (see tomcat jndi docs) -Tim Antonio Fiol Bonnín

Re: Singleton across multiple contexts

2003-06-15 Thread Mike Johnson
Hi Antonio, - Extract the component into a separate JVM, and connect to it via socket. This is what I'd do, but I'd also write a client class to get access. I suppose you could use RMI or something, but I'm not familiar with that. Whatever you're comfortable with, I guess. You could also spin

Re: Singleton across multiple contexts

2003-06-15 Thread Antonio Fiol Bonnín
- Extract the component into a separate JVM, and connect to it via socket. This is what I'd do, but I'd also write a client class to get access. I suppose you could use RMI or something, but I'm not familiar with that. Whatever you're comfortable with, I guess. You could also spin off this

RE: Singleton across multiple contexts

2003-06-15 Thread Filip Hanik
: Singleton across multiple contexts - Extract the component into a separate JVM, and connect to it via socket. This is what I'd do, but I'd also write a client class to get access. I suppose you could use RMI or something, but I'm not familiar with that. Whatever you're comfortable with, I guess

Re: Singleton across multiple contexts

2003-06-15 Thread Antonio Fiol Bonnín
This is the best I could find: -- Each application is loaded with sepperate classloaders, so as long as the servlets are in the same application and the singleton is in it's classpath too it works. -- My singleton has to work *across* applications. Any ideas? Thank you

Re: Singleton across multiple contexts

2003-06-15 Thread Dan Tran
: Singleton across multiple contexts I have not followed this thread, but putting the class in common/lib or shared/lib should make it a singleton across contexts Filip -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2003 10:52 AM

Re: Singleton across multiple contexts

2003-06-15 Thread Antonio Fiol Bonnín
PROTECTED] Sent: Sunday, June 15, 2003 10:52 AM To: Tomcat Users List Subject: Re: Singleton across multiple contexts - Extract the component into a separate JVM, and connect to it via socket. This is what I'd do, but I'd also write a client class to get access. I suppose you

Re: Singleton across multiple contexts

2003-06-15 Thread Mike Johnson
On Sun, 2003-06-15 at 10:51, Antonio Fiol Bonnín wrote: What I dislike is having to go out of the app to do app-internal calls. RMI, socket, CORBA, HTTP, ... I don't mind: I just dislike the idea. With good reason. :-) I do have a database. Databases are supposed to store data, aren't

Re: Singleton across multiple contexts

2003-06-15 Thread Tim Funk
Place the jar (or class) in common/lib (or common/classes) and all will be ok. That is - until you need to make a change to your singleton class (or a class used by it) - in which case you will need to restart tomcat. (and not restart your webapp) -Tim Antonio Fiol Bonnín wrote: This is the

Re: error-page used by multiple contexts

2003-03-20 Thread Bill Barker
Madere, Colin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So I set error-page in the /conf/web.xml for the whole server. error-page error-code401/error-code location/pub/error/401.html/location /error-page error-page error-code403/error-code

error-page used by multiple contexts

2003-03-19 Thread Madere, Colin
So I set error-page in the /conf/web.xml for the whole server. error-page error-code401/error-code location/pub/error/401.html/location /error-page error-page error-code403/error-code location/pub/error/403.html/location /error-page error-page error-code404/error-code

RE: multiple contexts and form-based login

2003-01-30 Thread Madere, Colin
Users List Subject: RE: multiple contexts and form-based login I think there is a SingleSignOn example that ships with Tomcat, look for singleSignOnValve Filip -Original Message- From: Madere, Colin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:08 PM

multiple contexts and form-based login

2003-01-29 Thread Madere, Colin
To reword my original post in a short statement: Is there anyway to have multiple contexts that have form-based auth configured that all use a single login form rather than one for each context? -Original Message- From: Madere, Colin [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 28

RE: multiple contexts and form-based login

2003-01-29 Thread Filip Hanik
I think there is a SingleSignOn example that ships with Tomcat, look for singleSignOnValve Filip -Original Message- From: Madere, Colin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 6:08 PM To: 'Tomcat Users List' Subject: multiple contexts and form-based login

How to have the same session across multiple contexts

2003-01-09 Thread shanmugampl
Hi, I have a requirement where i need to have the same session across all my contexts. I am using a Jboss + tomcat4.0.3 combination and am relatively new to servlet API's. I searched the list and found that this question has been posted by Eddie Liang. A reply was provided by Michael

using multiple Contexts

2002-11-17 Thread Adrian
I`m having trouble logging for multiple Contexts. does this look right Context path=/mynewdir docbase=mynewdir debug=0 Valve className=org.apache.catalina.valves.AccessLogValve prefix=mynewdirLog suffix=.txt / Context/ does this need to nest inside of the default Context ? If anyone has

Bad to have multiple contexts for one servlet?

2002-04-22 Thread apache
If I want for 3 or 4 paths to all point to the same servlet, is it wise to declare multiple contexts, like the following? Context path=/english docBase=x2o/ Context path=/spanish docBase=x2o/ If not a good idea, how should I do it? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED

server.xml - Multiple Contexts for a Single WebApp

2002-03-08 Thread annie . frost
I am trying to duplicate an issue that I am having when I have Apache connected to Tomcat, on Tomcat alone. My Web Application is crashing when I have two entry points into the Application, for example: http://hostname http://hostname/webappname Is there a way to set up two Contexts that point

Re: server.xml - Multiple Contexts for a Single WebApp

2002-03-08 Thread rsequeira
see intermixed. [EMAIL PROTECTED] on 03/08/2002 08:50:14 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: server.xml - Multiple Contexts for a Single WebApp I am trying to duplicate an issue that I am having when I have Apache connected

static variables in multiple contexts PLEASE HELP

2001-08-23 Thread Zach Hollandsworth
I have asked this question a couple of times in here with no replies. I have two separate contexts with the same class. The class has a static variable and I would like to have different static variables across contexts. the source to an example class is as follows: public class StaticTest

Re: static variables in multiple contexts PLEASE HELP

2001-08-23 Thread Craig R. McClanahan
the CLASSPATH, it is global to all web apps. Craig On Thu, 23 Aug 2001, Zach Hollandsworth wrote: Date: Thu, 23 Aug 2001 16:27:14 -0500 From: Zach Hollandsworth [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: static variables in multiple contexts

RE: static variables in multiple contexts PLEASE HELP

2001-08-23 Thread Zach Hollandsworth
?! any ideas? Zach -Original Message- From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig R. McClanahan Sent: Thursday, August 23, 2001 6:13 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: static variables in multiple contexts PLEASE HELP This was answered

RE: static variables in multiple contexts PLEASE HELP

2001-08-23 Thread Craig R. McClanahan
On Thu, 23 Aug 2001, Zach Hollandsworth wrote: Date: Thu, 23 Aug 2001 18:37:11 -0500 From: Zach Hollandsworth [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: static variables in multiple contexts PLEASE HELP Any idea why my static

RE: static variables in multiple contexts PLEASE HELP

2001-08-23 Thread Zach Hollandsworth
]On Behalf Of Craig R. McClanahan Sent: Thursday, August 23, 2001 8:18 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: static variables in multiple contexts PLEASE HELP On Thu, 23 Aug 2001, Zach Hollandsworth wrote: Date: Thu, 23 Aug 2001 18:37:11 -0500 From: Zach Hollandsworth [EMAIL

MULTIPLE CONTEXTS - ONE WEB-INF

2001-07-17 Thread Gurinder Randhawa
I have 5 different applications in webapps directory and they all run on same application. How can i set this up ? I don't want different application contexts created. I want them to use ROOT ? I have create symbolic links to ROOT and modified tomcat-apache.conf to do this. Oh yeah i'm using

Multiple contexts under IIS on different virtual hosts.

2001-05-23 Thread Sean LeBlanc
I'm trying to get multiple contexts on the same machine, under different hosts. To explain what I'm trying to do: Let's say I have a machine called HAL. I have two sites hosted on it, let's call them www.site1.com and www.site2.com. I want to have a Tomcat context on each, let's say /foo, so

RE: Multiple contexts under IIS on different virtual hosts.

2001-05-23 Thread Sean LeBlanc
AM To: TomCat Subject: Multiple contexts under IIS on different virtual hosts. I'm trying to get multiple contexts on the same machine, under different hosts. To explain what I'm trying to do: Let's say I have a machine called HAL. I have two sites hosted on it, let's call them www.site1.com

how to write servlet to use multiple contexts

2001-02-06 Thread Chris Ward
The servlets and JSP pages that I have written all work fine if I have it running under the webapps/ROOT context. I would also like to have another version running that I can modify, running in webapps/test. I have set up the contexts, but because the url's in the jsp pages all point to

Re: security and realms - multiple contexts

2001-01-22 Thread Craig R. McClanahan
Vijay Prabhakar wrote: I'm working with the source edition Tomcat 3.2.1. I'd like to set up an instance of Tomcat where certain incoming requests need to be authenticated using one method and others need to be authenticated using another method (based upon the URL). Is there a nice way of doing

security and realms - multiple contexts

2001-01-17 Thread Vijay Prabhakar
Title: security and realms - multiple contexts I'm working with the source edition Tomcat 3.2.1. I'd like to set up an instance of Tomcat where certain incoming requests need to be authenticated using one method and others need to be authenticated using another method (based upon the URL

Host Multiple Contexts

2000-12-28 Thread Shahed Ali
Hi, I have a host entry in my server.xml pointing to a webapp. This webapp is in the webapps directory. When I start tomcat, it loads 2 contexts each refering to the same application. one is webapps/myapp and the other is www.host.com I have now moved my app to a separate directory, and

Re: Host Multiple Contexts

2000-12-28 Thread Koen Maes \(BE-day.com\)
I think by removing ContextInterceptor className="org.apache.tomcat.context.AutoSetup" /from the server xml - Original Message - From: Shahed Ali To: [EMAIL PROTECTED] Sent: Thursday, December 28, 2000 6:15 PM Subject: Host Multiple Contexts

Re: Managing security on multiple contexts - urgent !

2000-11-22 Thread Craig R. McClanahan
"Lacerda, Wellington (AFIS)" wrote: I've a set of web applications /a, /b and /c and a set of users I want to have access to them, but using a single login. The user logs in via a form based login or something and have access to all the applications. Is it possible in Tomcat 3.2 ? No.

Managing security on multiple contexts - urgent !

2000-11-21 Thread Lacerda, Wellington (AFIS)
I've a set of web applications /a, /b and /c and a set of users I want to have access to them, but using a single login. The user logs in via a form based login or something and have access to all the applications. Is it possible in Tomcat 3.2 ? I wonder if I apply security restrictions to the