Tomcat v7.0 stopped to run my project at localhost

前端 未结 8 1604
醉话见心
醉话见心 2021-01-05 11:50

I was working on my web application in eclipse with Tomcat v7.0, and everything was fine.
But today suddenly I can\'t run my poject on server anymore.
I do as usual:

8条回答
  •  情话喂你
    2021-01-05 12:14

    In my case, when I had same issue I understood that I previously commented out the Host node with name="localhost" in server.xml.

    Example:

    
    

    And since then I was getting this Exception each time I tried to publish changes to Tomcat.

    But the problem is, when I opened server.xml in eclipse and I removed comment brackets from this Host, saved changes and tried o publish again, I was still getting this Exception. Restarting Eclipse, deleting tmp0 folder in C:\src\trunk.metadata.plugins\org.eclipse.wst.server.core did not help.

    What helped is openning server.xml in other than Eclipse editor. It is appeared that this Host stayed commented out in it, so Eclipse did not actually apply changes unless publishing is successfull. So I removed comment brackets from this Host in other text editor, saved changes, returned to Eclipse and publishing worked again!

    Hope it will help to somebody.

提交回复
热议问题