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: v5.5.x default context support outside of server.xml

2006-10-12 Thread Jon Wilmoth
Thanks.  I renamed my stand-alone context definition 
conf/[engine]/[host]/ROOT.xml and it worked.  
 
FYI...I've asked the developer list about the possibility of respecting the 
empty string path attribute value regardless of where the context is defined 
and/or update the documentation 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.x default context support outside of server.xml


> 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
> with an empty string "path" attribute for a context.

The doc is a bit obtuse in this area, since it wasn't fully revised from
previous levels.  To specify the default app, you must first delete the
existing webapps/ROOT directory, then install your app in webapps/ROOT
(or webapps/ROOT.war) or put your  element in
conf/[engine]/[host]/ROOT.xml.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
> with an empty string "path" attribute for a context.

The doc is a bit obtuse in this area, since it wasn't fully revised from
previous levels.  To specify the default app, you must first delete the
existing webapps/ROOT directory, then install your app in webapps/ROOT
(or webapps/ROOT.war) or put your  element in
conf/[engine]/[host]/ROOT.xml.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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-5.5-doc/config/context.html*. I searched the 
mailing list archives and found a thread on this subject that ended without any 
resolution. 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 with an empty string "path" attribute 
for a context.  Is this true?  If not, please let me know what I'm missing. 

Thanks, 
Jon 

* "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended 
to place  elements directly in the server.xml file. Instead, 
put them in the META-INF/context.xml directory of your WAR file or the 
conf directory as described above." 

** "a Context that has an empty PATH attribute will become the default web 
application for the virtual host." 
and 
"The value of this field [path] 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."

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]