I\'m trying to set up Dynamic Web Module 3.0 in order to support Java 6 development. I\'m getting this error in my Problems tab of eclipse whenever I do Maven > Update
In an our project, we add to change the web.xml root element's declaration, changing from:
to:
Probably Eclipse were expecting it as satisfying a different Servlet version spec. In our case too, we had neither compile nor runtime problems.
EDIT: In your case, where you were not using a web.xml file, there was the following pom's dependency which probably was confusing Eclipse's maven plugin:
javax.servlet
javax.servlet-api
3.1.0
provided
Change it to "3.0.1". (It turns out that WebApplicationInitializer requires "Servlet 3.0+ environments" and not 3.1+)