Tomcat returns some unknown welcome page

313 Views Asked by At

I am deploying a web app. I have no welcome files defined in web.xml (in both conf/web.xml and application web.xml). I do not have an index.html/index.htm/index.jsp in root of application. Still when I access http://localhost:8080 it shows some page.

I have enabled access logs, but I do not see any request for / in access logs.

Any idea what might have been happening? From where it would be getting the welcome page? Is there a way I can log the path of file being send as response?

2

There are 2 best solutions below

0
On BEST ANSWER

Found the root cause, it was due to browser. I am getting expected page after clearing browser cookies/cache. I was using FireFox. The browser was showing some old cached page.

1
On

Check that it's not the index.jsp page from the ROOT webapp (TOMCAT_HOME/webapps/ROOT/index.jsp).

Navigating directly to http://localhost:8080 without specifying the webapp name will normally take you into ROOT.

For me, that page looks like

Root index page