Errors encountered in the Eclipse+tomcat configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.