default context

2012-06-28 Thread Chad.Davis
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

Re: default context

2012-06-28 Thread David kerber
to 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-unsubscr

Re: default context

2012-06-28 Thread James Lampert
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 *do

Fwd: Cant start stop the default context in a virtual host

2010-02-23 Thread James McArthur
Hi I have been using Tomcat for years since 3 till 6 but I have never worked this one out I have several host 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

Changing default context path

2009-05-18 Thread Yaakov Chaikin
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: **

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
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 are strongly discouraged. Change

Re: Changing default context path

2009-05-18 Thread Yaakov Chaikin
...@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 attribute is not allowed except in circumstances that are strongly

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
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 statically defining

Re: Changing default context path

2009-05-18 Thread Yaakov Chaikin
On Mon, May 18, 2009 at 4:46 PM, Caldarale, Charles R chuck.caldar...@unisys.com 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, which you seem

Re: Changing default context path

2009-05-18 Thread Pid
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

RE: Changing default context path

2009-05-18 Thread Caldarale, Charles R
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 Context/ tag in it and the context path will change to /bla? I tried that and it didn't work. No, when inside

Add URLClassLoader search path to default context classloader

2007-12-21 Thread lightbulb432
. 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 list archive at Nabble.com

Re: Add URLClassLoader search path to default context classloader

2007-12-21 Thread Bill Barker
application's classloader 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 list archive at Nabble.com

Re: How to specify a default context?

2007-10-02 Thread Szabolcs Márton
]: 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 causing myapp to handle the request. Yes

RE: How to specify a default context?

2007-10-02 Thread Caldarale, Charles R
From: Szabolcs Márton [mailto:[EMAIL PROTECTED] Subject: Re: How to specify a default context? maybe try this, in server.xml, in tomcat6 Context path= docBase=YOUR_CONTEXT_HERE debug=0 / Please read the docs before posting. In current versions of Tomcat, do not ever put Context elements

RE: How to specify a default context?

2007-09-30 Thread Caldarale, Charles R
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 Host's appBase directory, and put your Context element in conf/Catalina/[host]/ROOT.xml

Re: How to specify a default context?

2007-09-30 Thread 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 Host's appBase directory, and put your Context element in conf/Catalina/[host]/ROOT.xml with a docBase attribute

RE: How to specify a default context?

2007-09-30 Thread Caldarale, Charles R
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 causing myapp to handle the request. Yes, using

How to specify a default context?

2007-09-29 Thread Ken Bowen
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 to do

Re: How to specify a default context?

2007-09-29 Thread Hassan Schroeder
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, as appropriate

Tomcat default context

2007-02-19 Thread Gardner, Brad
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 Tomcat Home Dir/conf/engine/host/ and placed this tag into the file: Context docBase=mywebapp/ This resulted in no change

RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
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 context

RE: Tomcat default context

2007-02-19 Thread Gardner, Brad
, 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 possibleto set up a default context outside

RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
oh, ok. Hadn't gone down that road yet. Good to know. Then would it be Context docBase=/mywebapp/ ? -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

RE: Tomcat default context

2007-02-19 Thread Caldarale, Charles R
From: Gardner, Brad [mailto:[EMAIL PROTECTED] Subject: Tomcat default context I created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/ and placed this tag into the file: Context docBase=mywebapp/ Don't put your webapp in the Host's appBase directory; if you do it may

How to set app as default context in Tomcat?

2006-12-07 Thread kkus
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 context in Host of server.xml. But this led to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use

RE: How to set app as default context in Tomcat?

2006-12-07 Thread Caldarale, Charles R
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 named ROOT

Re: How to set app as default context in Tomcat?

2006-12-07 Thread Martin Dubuc
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 context in Host of server.xml. But this led to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use of context in Host, which is correct

Re: Question regarding appBase/docBase and default context.

2006-10-26 Thread Rizalino
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 issues in serving WAR/JSP

Question regarding appBase/docBase and default context.

2006-10-23 Thread Rizalino DeVilleres
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

v5.5.x default context support outside of server.xml

2006-10-12 Thread Jon Wilmoth
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://tomcat.apache.org/tomcat

RE: v5.5.x default context support outside of server.xml

2006-10-12 Thread Caldarale, Charles R
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 default virtual host's context

Re: v5.5.x default context support outside of server.xml

2006-10-12 Thread Jon Wilmoth
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 users@tomcat.apache.org Sent: Thursday, October 12, 2006 9:06:00 AM Subject: RE: v5.5.x default

Re: v5.5.x default context support outside of server.xml

2006-10-12 Thread Gregor Schneider
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

RE: How set a default context

2006-09-26 Thread Ivan Balashov
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) that call the /portal context

Re: How set a default context

2006-09-26 Thread Mark Thomas
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

RE: How set a default context

2006-09-26 Thread Ivan Balashov
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 If this is the case

RE: How set a default context

2006-09-26 Thread Angelov, Rossen
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

RE: How set a default context

2006-09-26 Thread Caldarale, Charles R
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. Read the doc: http

RE: How set a default context

2006-09-26 Thread Angelov, Rossen
, 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 virtual host. This definitely works

RE: How set a default context

2006-09-26 Thread Caldarale, Charles R
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 properly in 5.5. - Chuck

How set a default context

2006-09-25 Thread Gabriel França Campolina
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

RE: How set a default context

2006-09-25 Thread Caldarale, Charles R
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 webapps directory

how do I set up a default context for a virtual host

2006-06-21 Thread teknokrat
I trying to setup virtual hosts on tomcat 5.5. and windows. I have added the following to server.xml Host name=wiki.net appBase=c:/wiki Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=wiki_log. suffix=.log timestamp=true/ /Host I have added

Re: how do I set up a default context for a virtual host

2006-06-21 Thread Pid
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.

Re: how do I set up a default context for a virtual host

2006-06-21 Thread Pid
If you put wiki.war into c:/wiki it will deploy and create c:/wiki/wiki/contents of war 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. context path= docBase=

Re: Problem with default context when moving from 5.5.7 to 5.5.12

2005-12-01 Thread Jason Burrows
(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 you must provide a default context. I don't see how all three statements can

RE: Problem with default context when moving from 5.5.7 to 5.5.12

2005-12-01 Thread Caldarale, Charles R
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 there's nothing in that document

Problem with default context when moving from 5.5.7 to 5.5.12

2005-11-30 Thread Jason Burrows
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

RE: Problem with default context when moving from 5.5.7 to 5.5.12

2005-11-30 Thread Caldarale, Charles R
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): Context path= reloadable=false docBase=c