vektor
vektor

Reputation: 2926

Starting Tomcat loads a page

I am using Tomcat 6 and I just noticed a weird thing - right after it starts, it loads my Login.jsp page. In my opinion, it should have no reason to do so, and googling this issue I found nothing. Any help would be appreciated.

Clues & Notes:

This is as far as I got. Any help would be much appreciated. If you need to see any other configuration files, just let me know!


Under the fold: details

Upvotes: 1

Views: 570

Answers (2)

BalusC
BalusC

Reputation: 1108742

Tomcat doesn't do that. Eclipse's Tomcat plugin does that. After Tomcat claims to be successfully started, the Eclipse Tomcat plugin fires a request on / in order to check if that is true. As you've apparently your web application deployed on context root /, its <welcome-file> will implicitly be opened. Note thus that this doesn't happen when your web application is deployed on a fixed context path.

Ignore it. This is completely harmless. Also, this doesn't happen in real production (of course, I assume that the production server doesn't ignorantly use Eclipse solely to start the Tomcat server instance).

Upvotes: 2

aalku
aalku

Reputation: 2878

Maybe you can set a breakpoint to pause the thread attending the request and use netstat command or other tools to see where does it come from. In case it is from the same process you should suspend the whole JVM and find out what thread is making the request and why.

Upvotes: 1

Related Questions