Why does eclipse edit web. xml?

Source: Internet
Author: User

Eclipse is very slow and drive me crazy. I found a lot of information on the Internet and did not solve it. I have no effect on modifying the configuration file of eclipse. ini, modifying the memory, and disabling many plug-in functions of Eclipse.
I don't think it's my computer. I should change it. It's impossible. I am an I5 processor, 4G memory. Isn't this configuration enough to run eclipse. Therefore, I have rejected all the above reasons and solutions.
After a long morning of hard work, I finally found a foreign post and found the cause and solution.

Another problem is that the computer is disconnected from the network and eclipse is no longer stuck. I believe that web. XML is definitely a problem.

It turns out that the version information in Web. XML is incorrect. You need to modify it based on your servlet version and runtime environment.
Originally, I used Tomcat 6 to support servlet2.5, but because of web. XML is copied from the old project, and the tomcat5 Environment supports servlet2.4. Therefore, version problems cause verification time consumption. You can modify the Web by using specific methods. XML
The version information in, OK.

Modify http://java.sun.com/xml/ns/j2eeHttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
For http://java.sun.com/xml/ns/javaeeHttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd".

Problems with other versions, and so on !!!

Related Article

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.