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.
I thought I'd add something to this question as I tried all of the above and ended up doing something different to fix my issue of:
Tomcat version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 and 6 Web modules
which then also led to
Cannot change version of project facet Dynamic Web Module to version 3.0
In our project we are using Maven to build a Java 1.8 / Tomcat 8.5 application (which only supports Dynamic Web Module Version 3.0 - not 4.0)
Someone in our team made the following change in our parent pom.xml
javax.servlet
javax.servlet-api
4.0.0
provided
The version had been moved from 3.0.1 to 4.0.0 and no-matter how many times I tried to manually overwrite org.eclipse.wst.common.project.facet.core.xml with the right version a Maven update re-over-wrote it with 4.0.
I set the version back to 3.0.1 as shown below and since then my Project Facets are showing the correct version, my apps are deploying to my internal Tomcat Server and to to this day, no-one is owning up to making the update to version 4.0.0 :)
javax.servlet
javax.servlet-api
3.0.1
provided