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

前端 未结 10 2057
离开以前
离开以前 2021-01-01 14:15

I\'m trying to deploy a very simple HTTPServlet project using Tomcat 7 in my Eclipse J2EE perspective. I am getting the error \"Tomcat version 7.0 only supports J2EE 1.2, 1.

10条回答
  •  囚心锁ツ
    2021-01-01 14:26

    For Tomcat Version 6

    In project, .settings folder OR Or CTRL+SHIFT+R : find this file

    org.eclipse.wst.common.project.facet.core.xml

    change the version of facet=jst.web to 2.4 or 2.5

    File : org.eclipse.wst.common.project.facet.core.xml

    
    
      
      
      
      
    
    

    Tomcat 7 You need facet="jst.web" version="3.0" to deploy on Tomcat 7.

提交回复
热议问题