1

I creating a web project using maven, java 7, String framework, hibernate, JPA and restful service in Eclipse. I changed the jre library in Java Build Path and also change the compiler.

but now i got error

Cannot change version of project facet Dynamic Web Module to 3.0.

thanks in advance !!!

Robert Justin
  • 73
  • 1
  • 1
  • 4

2 Answers2

1

The solution given by @enkor may work for you (Question is the same):

Cannot change version of project facet Dynamic Web Module to 3.0?

Mars Gao
  • 69
  • 6
0

you need to change the version into web.xml you need change some configuration you can find it below:

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
          http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    version="3.0">
    <display-name>Servlet 3.0 Web Application</display-name>
</web-app>

then Update Project.

Anshul Sharma
  • 3,432
  • 1
  • 12
  • 17