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

1

When trying to start my JSF application my return this error:

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

pom.xml

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <version>2.1.7</version>
    </dependency>

    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <version>2.1.7</version>
    </dependency>

    <dependency>
        <groupId>org.glassfish</groupId>
        <artifactId>javax.faces</artifactId>
        <version>2.2.7</version>
    </dependency>

     <dependency>
           <groupId>javax.servlet</groupId>
           <artifactId>javax.servlet-api</artifactId>
           <version>3.0.1</version>
     </dependency>

     <dependency>  
        <groupId>javax.servlet</groupId>  
        <artifactId>jstl</artifactId>  
        <version>1.2</version>  
      </dependency>  

    <dependency>
        <groupId>org.primefaces</groupId>
        <artifactId>primefaces</artifactId>
        <version>5.2</version>
    </dependency>

    <dependency>
        <groupId>net.bootsfaces</groupId>
        <artifactId>bootsfaces</artifactId>
        <version>0.6.0</version>
    </dependency>

  </dependencies>
    
asked by anonymous 02.10.2015 / 15:12

1 answer

3

Make sure the jars of what are on your pom are also in the project's lib folder. If not, do the following: Properties "- >" Deployment Assembly ", add" Java Build Path Entries - > Maven Dependencies "

After a clean and install in your project, clear the deploy directory of your server. If it is tomcat, right-click on the icon and go to "clean". Then go up the server.

    
02.10.2015 / 15:23