Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules

Reprinted from: http://jingwang0523.blog.163.com/blog/static/9090710320113294551497/

Recently, I am using eclipse to do a project. When I create a new project, everything is new. I use the latest version and select the latest 3.0 version in the Dynamic web module version column. When deploying the project, there is an error as scheduled. http://hi.baidu.com/yolanda441/b ... 41d36dd1164e2e.html This brother's blog has solved the problem, and now the method is posted here, hoping to help others:

"Through search, I found that in the project Under the .setting folder, there is a file named org.eclipse.wst.common.project.facet.core.xml, which is configured with various version information. At this point, modify this file according to the local configuration, and the problem is solved.

<?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="2.4"/>
<installed facet="wst.jsdt.web" version="1.



For mistakes like mine, you can download Tomcat 7.0 to solve it, but I have trouble, so I just change <installed facet="jst.web" version="3.0"/> in the configuration file to a lower version version= "2.5" is fine

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326469107&siteId=291194637