How to fix “Cannot change version of project facet Dynamic Web Module to 2.5” Error in Eclipse

In this article we will learn how to fix one of the most common error which almost all web developer would have encountered “Cannot change version of project facet Dynamic Web Module to 2.5”.

How to change dynamic web module version in eclipse ?

  1. Right click on Web Project in Eclipse
  2. Click on Properties
  3. Now Click on Project Facets Tab
  4. Change value for Dynamic Web Module to the required one

Project Facet Dynamic Web Project

Note : Changing to a higher version will work(2.5 to 3.0) but downgrading to a lower version(3.0 to 2.5) will not work many times. That’s where we will be getting the above mentioned error message.

How to Fix Cannot change version of project facet Dynamic Web Module to 2.5 Error ?

When we try to follow the above steps for downgrading from version 3.0 to 2.5.we will be ending up in the error message.

Change version of project facet Dynamic Web Module to 2.5

Then we need to follow this quick hack to fix the issue.

  1. Switch to Navigator view, Window -> Show View -> Navigator
  2. Open the .settings folder of your Web Project
  3. Open the file org.eclipse.wst.common.project.facet.core.xml which consist of the facet information
  4. There you can find this line <installed facet=”jst.web” version=”3.0″/>
  5. Change the number from 3.0 to 2.5. Thats it 🙂 Your project facet will be changed.

Project Facet - Navigator

Do let me know your thoughts or if you have any other achieving it let me know.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *