Eclipse Tomcat Add and remove engineering exception

Source: Internet
Author: User
Tags tomcat apache tomcat

1 after the Eclipse Import project, right-click the server Add and remove project, there is no resource:

Solution: Right-click the project, property-> Select Project facet-> tick Dynamic Web project (note the Web module version, different versions of Tomcat support the Web module differently. )

TOMCAT6 can only use 2.5 or return 2 of the wrong

2 deployment of the project appeared Tomcat version 6.0 only supports EE 1.2, 1.3, 1.4, and Java EE 5 Web modules error; The workaround is as follows:

Under the workspace project, under. Settings, there is a file named Org.eclipse.wst.common.project.facet.core.xml with various version information:

<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<runtime name= "Apache Tomcat v5.5"/ >
<fixed facet= "Jst.web"/>
<fixed facet= "Jst.java"/>
<installed facet= "Jst.java" version= "5.0"/>
<installed facet= "Jst.web" version= "3.0"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>

Like the above error, you can download Tomcat 7. 0 solution, you can also change the <installed facet= "Jst.web" version= "3.0"/> To lower version version= "2.5"

Other Links:

Https://www.cnblogs.com/lbb4511/p/5520944.html

http://blog.csdn.net/u011008029/article/details/54618382

http://blog.csdn.net/zpf336/article/details/43834205




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.