The correct answer is: - A simple thing. In most cases, you cannot change the version of Dynamic Web Module to 3.0. By default it should be 2.3 or 2.4 or another. This will not work, right click on project-> preference → project facet → uncheck the dynamic web module and change the version to 3.0, then check it. and I think you should change the latest version (i.e.: 1.7 or higher) that. After that, click the "Apply" and "Close" buttons.
then update the maven project. right click on project, select maven -> update project. anyway, the error will continue for 80% of us ..
The real solution is here 1> go to the workspace folder 2> then go to your project folder 3> check for the presence of the .settings file (sometimes it can be hidden and then hide it .. (such a rare chance) 4> Go into it. Then in the settings file, check the org.eclipse.wst.common.project.facet.core.xml file and edit it with notepad ++ or something like that.enter code here 5> this is the code inside
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.5"/> <installed facet="jst.web" version="2.4"/> <installed facet="wst.jsdt.web" version="1.0"/> </faceted-project>
change jst.web version to 3.0 like this
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="wst.jsdt.web"/> <installed facet="java" version="1.5"/> <installed facet="jst.web" version="3.0"/> <installed facet="wst.jsdt.web" version="1.0"/> </faceted-project>
then finally upgrade maven .. then restart eclipse or other IDE
source share