David kerber wrote:
If I'm not mistaken (which is definitely possible), if you name it
ROOT.war, it will also become the default context.
Quite true. Even a neophyte like me is aware of that. ;-p
(And there's a lot more about Tomcat that I *don't* know, than there is
that I
drop a default
web app WAR into the webapps folder, correct?
If I'm not mistaken (which is definitely possible), if you name it
ROOT.war, it will also become the default context.
D
-
To unsubscribe, e-mail: users-uns
As I read the context docs (
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html ), the only way to
define a default web application is via a context element in the server.xml
file. Is this true? So, this means that it is IMPOSSIBLE to drop a default
web app WAR into the webapps folde
Hi
I have been using Tomcat for years since 3 till 6 but I have never worked
this one out
I have several in my engine each with a manager
I have web apps intalled including a website in the ROOT context ( e.g. /
) for each host
If you try and start or stop the / context it says no such contex
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com]
> Subject: Re: Changing default context path
>
> So, is it telling me that I can place bla.xml into META-INF
> directory with a tag in it and the context path
> will change to /bla? I tried that and it didn't wor
Caldarale, Charles R wrote:
> The path attribute is not allowed except in circumstances that are strongly
> discouraged.
Can I suggest an amendment to the documentation as follows:
- If you specify a context path of an empty string (""), you are
- defining the default web application for this
On Mon, May 18, 2009 at 4:46 PM, Caldarale, Charles R
wrote:
>
> > From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com]
> > Subject: Re: Changing default context path
> >
> > Take a look at 5th bullet.
>
> Take a look at the description of the path attribute,
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com]
> Subject: Re: Changing default context path
>
> Take a look at 5th bullet.
Take a look at the description of the path attribute, which you seem to be
ignoring:
"The value of this field must not be set except when stat
k.caldar...@unisys.com> wrote:
> > From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com]
> > Subject: Changing default context path
> >
> > Tomcat still defaults to the WAR file name as the context path...
>
> That's how it's defined to work. The path attribut
> From: Yaakov Chaikin [mailto:yaakov.chai...@gmail.com]
> Subject: Changing default context path
>
> Tomcat still defaults to the WAR file name as the context path...
That's how it's defined to work. The path attribute is not allowed except in
circumstances that ar
Hi,
I am trying to deploy a WAR with a custom context path. For some reason,
Tomcat still defaults to the WAR file name as the context path...
What I am doing is placing context.xml inside the blah.war under
META-INF/context.xml. Here are the contents of context.xml:
**
loader
> by
> using URLClassLoader. However, I don't know how I can include the search
> path of that classloader in the web application's classloader provided by
> Tomcat. How can I do this?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/A
loader provided by
Tomcat. How can I do this?
Thanks.
--
View this message in context:
http://www.nabble.com/Add-URLClassLoader-search-path-to-default-context-classloader-tp14458477p14458477.html
Sent from the Tomcat - User mailing l
> From: Szabolcs Márton [mailto:[EMAIL PROTECTED]
> Subject: Re: How to specify a default context?
>
> maybe try this, in server.xml, in tomcat6
>
Please read the docs before posting. In current versions of Tomcat, do not
ever put elements inside server.xml. Do it the docu
EMAIL PROTECTED]
> > Subject: Re: How to specify a default context?
> >
> > Since I plan to use http://tuckey.org/urlrewrite/ to
> > rewrite URLs, and since "/" will rewrite to "/myapp/",
> > then the request htpp://myhost/ will ending up causing
>
> From: Ken Bowen [mailto:[EMAIL PROTECTED]
> Subject: Re: How to specify a default context?
>
> Since I plan to use http://tuckey.org/urlrewrite/ to
> rewrite URLs, and since "/" will rewrite to "/myapp/",
> then the request htpp://myhost/ will ending up
R wrote:
From: Ken Bowen [mailto:[EMAIL PROTECTED]
Subject: Re: How to specify a default context?
Is there no other way, one which leaves the app with its
original name?
Place your webapp outside of the 's appBase directory, and put
your element in conf/Catalina/[host]/ROOT.xml wit
> From: Ken Bowen [mailto:[EMAIL PROTECTED]
> Subject: Re: How to specify a default context?
>
> Is there no other way, one which leaves the app with its
> original name?
Place your webapp outside of the 's appBase directory, and put
your element in conf/Catalina/[h
a Host are specified in server.xml, but all are
placed in the META-INF of their respective apps,
how does one specify one of them as the default Context for that Host?
Name it ROOT (directory) or ROOT.war, as appropriate.
HTH,
-
On 9/29/07, Ken Bowen <[EMAIL PROTECTED]> wrote:
> When no contexts for a Host are specified in server.xml, but all are
> placed in the META-INF of their respective apps,
> how does one specify one of them as the default Context for that Host?
Name it ROOT (directory) or ROOT.war,
Hi all,
When no contexts for a Host are specified in server.xml, but all are
placed in the META-INF of their respective apps,
how does one specify one of them as the default Context for that Host?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html doesn't seem
to say what
> From: Gardner, Brad [mailto:[EMAIL PROTECTED]
> Subject: Tomcat default context
>
> I created the ROOT.xml file under /conf///
> and placed this tag into the file:
>
>
Don't put your webapp in the 's appBase directory; if you do it
may be deployed twice, on
oh, ok. Hadn't gone down that road yet. Good to know.
Then would it be
?
-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:52 AM
To: Tomcat Users List
Subject: RE: Tomcat default context
This is from the documentation that
but still working on the root context.
-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 11:48 AM
To: Tomcat Users List
Subject: RE: Tomcat default context
didn't know it was possible....to set up a default context
didn't know it was possibleto set up a default context outside of the
server.xml file.
I thought Tomcat required that.
-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:43 AM
To: users@tomcat.apache.org
Subject: Tomcat default co
I am using tomcat 5.5.20 and attempting to set up a default context
without placing the context tag inside of the server.xml file. I
created the ROOT.xml file under /conf///
and placed this tag into the file:
This resulted in no change, and the default tomcat page still appears
when I
The way I am handling this, and it is probably not very clean, but it
works for me, is to define an index.html file in webapps/ROOT with
this content:
On 12/7/06, kkus <[EMAIL PROTECTED]> wrote:
I am using Tomcat 5.5.20 and my app in XP. I need set my app as default
context so I wil
> From: kkus [mailto:[EMAIL PROTECTED]
> Subject: How to set app as default context in Tomcat?
>
> I am using Tomcat 5.5.20 and my app in XP. I need set my app
> as default context so I will only use url localhost:8080
> instead of localhost:8080/app.
The default app must be
I am using Tomcat 5.5.20 and my app in XP. I need set my app as default
context so I will only use url localhost:8080 instead of localhost:8080/app.
The way I found is to set a in of server.xml. But this led
to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use
of in
We would like both appBase and docBase to be the same for the default
> Context (is this possible?)
>
>
>
> *Basically, all the WAR/JSPs/Servlets will all go/served by tomcat from
> the public_html folder?*
>
>
>
> Here is the current setup that worked and resol
Guys,
We would like both appBase and docBase to be the same for the default
Context (is this possible?)
*Basically, all the WAR/JSPs/Servlets will all go/served by tomcat from
the public_html folder?*
Here is the current setup that worked and resolved the other issue but
it
created
It also worked for me:
- putting context.xml to webpass/YOUR_WEPAPP/META-INF
- pack your web-app as ROOT.war
- deploy it
Tomcat will copy your context.xml from META-INF to
conf/[engine]/[host]/ROOT.xml
Cheers
Greg
PS.: tomcat 5.5.17
--
what's puzzlin' you, is the nature of my game
on to capture this specific naming requirement for
specifying the defining the host's default context (aka webapp).
- Original Message
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List
Sent: Thursday, October 12, 2006 9:06:00 AM
Subject: RE: v5.5
> From: Jon Wilmoth [mailto:[EMAIL PROTECTED]
> Subject: v5.5.x default context support outside of server.xml
>
> There seems to be some conflict between different sections
> of the context config documentation that leads me to believe
> it's not possible to specify a
I've tried unsuccessfully to deploy my webapp as the default context for my
host using a context defined outside of the server.xml (individual files (with
a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/
directory) as strongly recommended in
http://to
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
> Subject: RE: How set a default context
>
> What I wrote was extracted from the same doc, the URL you
> pasted in your response.
Yes, but you didn't continue to read the rest of the page, which states
how to do it proper
y, September 26, 2006 2:15 PM
To: Tomcat Users List
Subject: RE: How set a default context
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
> Subject: RE: How set a default context
>
> - a Context that has an empty PATH attribute will become the
> default web application for the
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
> Subject: RE: How set a default context
>
> - a Context that has an empty PATH attribute will become the
> default web application for the virtual host. This definitely
> works on Tomcat 5.5
Definitely not true.
I know two ways to define a default context in Tomcat:
- a Context that has an empty PATH attribute will become the default web
application for the virtual host. This definitely works on Tomcat 5.5
- DefaultContext element in the Host is the other way to define a
default context, but this may
set a default context
Ivan Balashov wrote:
> But that means the context of application will change, as opposed to
making
> it default. I'm not sure if this change is harmful to the application, but
> if it uses e.g. context name for some reason it might be failing.
>
> -Ivan
Ivan Balashov wrote:
> But that means the context of application will change, as opposed to making
> it default. I'm not sure if this change is harmful to the application, but
> if it uses e.g. context name for some reason it might be failing.
>
> -Ivan
If this is the case then you have a badly w
EMAIL PROTECTED]
Sent: Tuesday, September 26, 2006 1:38 AM
To: Tomcat Users List
Subject: RE: How set a default context
> From: Gabriel França Campolina [mailto:[EMAIL PROTECTED]
> Subject: How set a default context
>
> but I need set the default context (http://localhost:8080)
> t
> From: Gabriel França Campolina [mailto:[EMAIL PROTECTED]
> Subject: How set a default context
>
> but I need set the default context (http://localhost:8080)
> that call the /portal context
Delete the existing webapps/ROOT directory, and rename your portal app to ROOT
in the we
Hi people,
I need your help, I install the tomcat 5.5.17 in my sever, and I have two
context in webapps: /portal and /intranet, when I start the tomcat the two
application run ok, but I need set the default context (
http://localhost:8080) that call the /portal context, Someone can help me?
in
[EMAIL PROTECTED] wrote:
In Tomcat 5.0.x, it was possible to change the default context of the
manager application by modifying the path attribute of context element,
in the $CATALINA/conf/Catalina/localhost/manager.xml file, from
"/manager" to something else.
Then you could
In Tomcat 5.0.x, it was possible to change the default context of the
manager application by modifying the path attribute of context element,
in the $CATALINA/conf/Catalina/localhost/manager.xml file, from
"/manager" to something else.
Then you could access the manager applicatio
If you put wiki.war into c:/wiki it will deploy and create
c:/wiki/wiki/
then the app will (if it's working) be available at:
http://server:port/wiki/
teknokrat wrote:
> Yeah, I have. If you have a look at the bottom I have a ROOT.xml with
Read it again.
>
>
> I have tried using just with
Yeah, I have. If you have a look at the bottom I have a ROOT.xml with
I have tried using just with no success
Pid wrote:
Read the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Context path attribute: "The value of this field must not be set except
when statically def
Read the docs:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Context path attribute: "The value of this field must not be set except
when statically defining a Context in server.xml, as it will be infered
from the filenames used for either the .xml context file or the docBase."
I trying to setup virtual hosts on tomcat 5.5. and windows.
I have added the following to server.xml
I have added context.xml to conf/Catalina/wiki.net containing
Then I have added wiki.war to C:\wiki and restarted tomcat.
Going to http://wiki.net produces nothing, http:/wiki.net/w
> From: Jason Burrows [mailto:[EMAIL PROTECTED]
> Subject: Re: Problem with default context when moving from
> 5.5.7 to 5.5.12
>
> I agree, but the best documentation I could find on this was:
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
> ...and
on. In
addition, there is that spot (directly quoted in my first email, but
I'll paraphrase here) that first says "don't put context elements in
your server.xml file" then says "context elements for the default
context must go in your server.xml file" and then says &qu
> From: Jason Burrows [mailto:[EMAIL PROTECTED]
> Subject: Problem with default context when moving from 5.5.7 to 5.5.12
>
> Previously, I had a context.xml file in my tomcat\conf directory with
> this context tag (removed sub elements for brevity):
>
> crossContext="
Hi all -
I have recently upgraded from Tomcat 5.5.7 to 5.5.12 and now I am
having problems getting my default context to work correctly. I very
well may have been doing this incorrectly the first time, but I still
need to figure out how to get it working again. In this specific
case, I am
54 matches
Mail list logo