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

前端 未结 9 1360
温柔的废话
温柔的废话 2021-02-05 19:14

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.
9条回答
  •  独厮守ぢ
    2021-02-05 19:43

    If you tried to convert your simple java project to web project using maven and changing specificications from project facets, you won't get a compile error but when you start deployment you can see this error message.

    to solve this think of it. This is a web project and needs to deploy as a war file (or ear).

    change packaging spec to war in your pom.xml then compile maven again.

提交回复
热议问题