java.lang.ClassNotFoundException: javax.faces.weba

2020-05-26 10:39发布

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?

9条回答
叛逆
2楼-- · 2020-05-26 11:06

Right click on project properties and follow below steps

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

查看更多
\"骚年 ilove
3楼-- · 2020-05-26 11:07

You can also do this, which solved my problem.
Right click on your project->properties->project facets->java server faces.

Then if the disabled library configuration option has selected, then change it to user library and then add mojarra's latest version and press OK button and try run the project again...

It should help.

查看更多
不美不萌又怎样
4楼-- · 2020-05-26 11:11

Right click on project properties and follow below steps

"Project Properties" --> "Deployment Assembly", adding "Java Build Path Entries" ->jsf 2.0 (mojarra 2.0.3-fcs) solved my problems

查看更多
登录 后发表回答