4

Got the following error while trying to build our common code.

Description Resource Path Location Type JavaServer Faces 2.0 can not be installed : One or more constraints have not been satisfied. Apps line 1 Maven Java EE Configuration Problem JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer. Apps line 1 Maven Java EE Configuration Problem

I tried to find the error inside the code but there is no error. I suspect it's a dependency that is missing. Could someone please explain further if my thoughts are correct?

JustinBieber
  • 355
  • 3
  • 5
  • 23

1 Answers1

5

Somewhere in your project there is a web.xml descriptor, and it declares version number for compliance with some edition of servlet-api. Your application tries to use JSF2 which requires web.xml to declare version 2.5 or newer. Apparently yours is too old.

Find this file and check what's there in the root element <web-app>. There are examples of this descriptor for version 2.5 and 3 here on SO: link1, link2, link3.

Community
  • 1
  • 1
Paweł Wyrwiński
  • 1,393
  • 9
  • 13