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
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
[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 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
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
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
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.
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???
-
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
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
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
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?
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
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,
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
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,
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
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
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
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
- 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
: 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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
?! 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
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
]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
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
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
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
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
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
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
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
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
"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.
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
52 matches
Mail list logo