Sorry about thatsome kind of sloppiness on my part.
I've realize the problem must lie in the relationship between my app's
META-INF/context.xml and what is configured in Tomcat's conf/server.xml.
IIn the latter, found there was an old Context entry in the Host element:
Host
Ken Bowen wrote:
Sorry about thatsome kind of sloppiness on my part.
I've realize the problem must lie in the relationship between my app's
META-INF/context.xml and what is configured in Tomcat's conf/server.xml.
IIn the latter, found there was an old Context entry in the Host element:
From: Pid [mailto:[EMAIL PROTECTED]
Subject: Re: Weird problem: Two apparent copies of app started
DO NOT use the path or docBase attribute in a Context defined
outside of server.xml.
One exception to that: if the webapp is placed outside of the Host
appBase directory, your Context entry
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Subject: Re: Weird problem: Two apparent copies of app started
So what I'm confused about is this: Exactly what should
appear in Host and what in META-INF/context.xml??
The A Word on Contexts in
http://tomcat.apache.org/tomcat-5.5-doc
Chuck, PID:
Thanks for the replies and pointers -- they're a real help.
Now, I'm sure the following is going to turn out to be a DUH! moment for
me, BUT:
If I put my context element in META-INF/context.xml, how is it
associated with a
particular virtual HOST?
It's obvious how this happens
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Subject: Re: Weird problem: Two apparent copies of app started
If I put my context element in META-INF/context.xml, how is it
associated with a particular virtual HOST?
But if:
conf/server.xml defines two virtual hosts: Host1 and Host2
Ken Bowen wrote:
how does one ensure (if one can?) that myapp is an application running
in Host2,
but not in Host1 ??
Each host has its own appBase.
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To
Well, I said it would be DUH!, didn't I.
Thanks a lot guys.
Have a good weekend,
Ken
Caldarale, Charles R wrote:
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Subject: Re: Weird problem: Two apparent copies of app started
If I put my context element in META-INF/context.xml, how is it
associated
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Subject: Weird problem: Two apparent copies of app started
strongbrain/WEB-INF/lib/servlet-api.jar
One obvious error: you must not put the servlet-api.jar inside your
webapp - the container supplies that. Remove it and see if it helps.
- Chuck