Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-26 Thread Christopher Schultz

James,

On 9/25/23 12:17, James H. H. Lampert wrote:
I probably asked the question before, but does Tomcat have any problems 
with not having a ROOT context?


I always run with a ROOT context just to be able to do things like 
provide custom responses with clients request 
/no-such-app/application.yml and stuff like that.


This may not be true any more, but I have this comment in my ROOT 
web.xml that get auto-built/deployed by my build process:


  Dummy ROOT context to prevent 400 Bad Request 
responses


So it's possible that requesting /no-such-app/whatever will return 404 
these days, but at one point it returned 400 and I didn't like that.


-chris

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



Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-25 Thread Mark Thomas

On 25/09/2023 17:17, James H. H. Lampert wrote:
I probably asked the question before, but does Tomcat have any problems 
with not having a ROOT context?


None I am aware of although there may be some edge cases. Past 
precedence is that any such edge cases would be treated as bugs and 
fixed in the next release.


I can recall one such instance in recent years.

Mark

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



Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-25 Thread Aryeh Friedman
On Mon, Sep 25, 2023 at 12:20 PM James H. H. Lampert
 wrote:
>
> I probably asked the question before, but does Tomcat have any problems
> with not having a ROOT context?

Not that I can tell and have been running in this mode for about 5 years now.


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

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