Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

I am getting this error, when executing JSF and PrimeFaces.

I have included these jars,

  • jsf-api-2.0.3.jar,
  • jsf-impl-2.0.3.jar ,
  • jstl-1.0.2.jar jars and
  • primefaces-2.2.RC2.jar

in the WEB-INF/lib folder.

Is there any jar I am missing?

like image 510
Mohan Raj Avatar asked Mar 26 '14 10:03

Mohan Raj


2 Answers

Right click on project properties and follow below steps

"Project Properties" --> "Deployment Assembly", adding "Java Build Path Entries" -> "Maven Dependencies" solves the problem!

like image 174
chandan burnwal Avatar answered Sep 22 '22 14:09

chandan burnwal


Apparently, you're not missing anything else. Just try to do the following:

  1. Ensure that the necessary jars exist in the "lib" project folder;
  2. Do clean & build;

In the end, you should find those included jars, available within the "build" project folder.

like image 39
Omar Avatar answered Sep 19 '22 14:09

Omar