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]