1
Eclipse Publishing Project Error: Multiple contexts Hava a path of "/xxx"
1.1 Click the "server.xml" file in Eclipse's servers and open
650) this.width=650; "src=" Http://www.codingwhy.com/data/upload/image/20150126/1422272090102197.jpg "alt=" In Eclipse's servers, open "Server.xml" "style=" margin:0px;padding:0px;/>
1.2 In the "Server.xml" file, you can see a duplicate defined context, delete 1
650) this.width=650; "src=" http://www.codingwhy.com/data/upload/image/20150126/1422272220913911.jpg "alt=" Delete " Server.xml, you can see the duplicate defined context "style=" margin:0px;padding:0px; "/>
2 Q What do I do when I start a service and then visit Tomcat with a browser to report 404?
Open your Servers tab and double-click your tomcat.
See your Tomcat server locations selected first, that is, the Web runtime eclipse puts your project into that default folder, and that folder does not have the root file of the Tomcat home page
Reference Links:
http://blog.csdn.net/lanzhizhuxia/article/details/8087709
http://showlike.iteye.com/blog/1549663
Http://www.codingwhy.com/686.html
The servlet encountered a problem:
404 Questions:
405 Questions:
1, the servlet that inherits from HttpServlet does not override the method of handling requests and responses: Doget or Dopost, and the default tuning
Using Doget or Dopost of the parent class;
2, the parent class HttpServlet Doget or Dopost methods such as overwrite your rewritten doget or Dopost methods;
Either 1 or 2, the default implementation of methods such as the parent class HttpServlet Doget or Dopost is to return an HTTP error representation with a status code of 405
The request method for the specified resource is not allowed.
Workaround: Rewrite the doget,dopost and do not override the Super.doget and Dopost methods
This article is from the "Heart to Bodhi" blog, please be sure to keep this source http://zhongkun.blog.51cto.com/1057583/1619147
Errors encountered in the Eclipse+tomcat configuration