In Eclipse start server error server Tomcat v7.0 server at localhost failed to start. But it's all good.
The first thing to think about is that you should close the exception last time and reboot. So go to the Tomcat/bin directory and execute the./shutdown.sh again./startup.sh.
./shutdown.sh when Tomcat tips
November 05, 2016 1:44:57 am Org.apache.catalina.startup.Catalina stopserver
Critical: Could not contact localhost:8005. Tomcat May is not running.
November 05, 2016 1:44:57 am Org.apache.catalina.startup.Catalina stopserver
Severity: catalina.stop:
Java.net.ConnectException:Connection refused (Connection refused)
This is because Tomcat is still off and you'll have this hint when you close it.
The direct execution of the startup.sh started successfully, and then shutdown.sh also succeeded.
Think carefully, the Eclipse Server window start and direct command start should not be much difference
The difference I know is that because of the setup, the Eclipse Server window will throw my project into Tomcat and the command will not start. So there should be a problem with the URL pattern configured in Web. Xml.
Opening web. XML looked as if it were the problem. I wrote it.
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/*.htm</url-pattern>
</servlet-mapping>
Url-pattern does not support such a notation. Can be written as an. htm or write AS/. Next chapter Url-pattern things.