RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-20 Thread Roger Powers
> You may have already figured this out, but just in case:
> 
> 1) The path attribute of a  element may only
> be used when the  element is nested inside a
>  element in server.xml - which is strongly
> discouraged.
> 
> 2) The docBase attribute of a  element may
> only be used when a) the webapp is located outside of the
>  appBase directory, *and* b) when the
>  element is in
> conf/Catalina/[host]/[appName].xml or is in server.xml
> (again, the latter is strongly discouraged).
> 
> Results are not predictable for any other usage of those
> attributes.

Thanks, Chuck and Mark, for your quick responses to my questions.

I imagine this comes up often.

It'd be nice if Tomcat would throw a warning when it knows these 
rules are being violated.

Thanks,
RP


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Caldarale, Charles R
> From: Roger Powers [mailto:prog...@yahoo.com]
> Subject: Problem with respecting docBase in context file in TC 6.0.20?
> 
> How can I get it to not make such a presumption, and look at the
> docBase in the t.xml file?

You may have already figured this out, but just in case:

1) The path attribute of a  element may only be used when the 
 element is nested inside a  element in server.xml - which is 
strongly discouraged.

2) The docBase attribute of a  element may only be used when a) the 
webapp is located outside of the  appBase directory, *and* b) when the 
 element is in conf/Catalina/[host]/[appName].xml or is in server.xml 
(again, the latter is strongly discouraged).

Results are not predictable for any other usage of those attributes.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
I also tried renaming
/usr/tomcat/conf/Catalina/localhost/t.xml
to 
/usr/tomcat/conf/Catalina/localhost/a.xml
and now no exception is thrown, and I see
via tomcat manager that context /a is 
created, but whenever I try to access 
any pages under /t I get error 404.

--- On Wed, 8/19/09, Roger Powers  wrote:

> From: Roger Powers 
> Subject: Problem with respecting docBase in context file in TC 6.0.20?
> To: users@tomcat.apache.org
> Date: Wednesday, August 19, 2009, 3:19 PM
> Problem:
> 
> 1) /usr/tomcat/conf/Catalina/localhost/t.xml has:
> 
> 
> 2) /usr/tomcat/webapps/a exists.
> 
> 3) /usr/tomcat/webapps/t does not exist.
> 
> 4) When tomcat starts,
> org.apache.catalina.core.StandardContext:resourcesStart()
> throws 
> java.lang.IllegalArgumentException: Document base 
> /usr/tomcat/webapps/t does not exist or is not a readable
> directory
> 
> Since I never gave it a docBase of /usr/tomcat/webapps/t, I
> presume
> the problem is that it expects one due to the presense of
> /usr/tomcat/conf/catalina/localhost/t.xml ?
> 
> How can I get it to not make such a presumption, and look
> at the docBase 
> in the t.xml file?
> 
> 
>   
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Problem with respecting docBase in context file in TC 6.0.20?

2009-08-19 Thread Roger Powers
Problem:

1) /usr/tomcat/conf/Catalina/localhost/t.xml has:


2) /usr/tomcat/webapps/a exists.

3) /usr/tomcat/webapps/t does not exist.

4) When tomcat starts, 
org.apache.catalina.core.StandardContext:resourcesStart() throws 
java.lang.IllegalArgumentException: Document base 
/usr/tomcat/webapps/t does not exist or is not a readable directory

Since I never gave it a docBase of /usr/tomcat/webapps/t, I presume
the problem is that it expects one due to the presense of
/usr/tomcat/conf/catalina/localhost/t.xml ?

How can I get it to not make such a presumption, and look at the docBase 
in the t.xml file?


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org