Please follow bellow instructions to resolve your problem:a. Right click on your project->properties->project facets->java server faces.
b. Then if the disabled library configuration option has selected, then change it to user library.
c. Add mojarra's latest version
d. Press OK button and try run the project again
It should help.