Make sure that your pom.xml
contains the dependency for the JSF, error shows that you cannot find the class of this API.
For every Java EE specification you’re using you also need an implementation.
With example in your Facets screen choices
Choose one of the implementations and add to the dependencies in your pom.xml, followed by the API of your specification.
There are two sites you can use to get dependencies for Maven.
http://mvnrepository.com/
https://search.maven.org/
Examples:
<dependencies>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>4.3.7.Final</version>
</dependency>
</dependencies>
In my case only the very first faces, how would it look? using the "javax.faces?"
– Júnior Nascimento
Take a look at one of the two sites I mentioned, type in Primefaces, choose the version and add. Use the jsf-api next to the primefaces, its implementation. But I leave it here to better understand http://mvnrepository.com/artifact/org.primefaces/primefaces/5.3
– dougg0k