java.lang.Classnotfoundexception: javax.faces.webapp.Facesservlet

Asked

Viewed 7,968 times

1

Trying to start my JSF application returns 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>

1 answer

5


Check that the jars of what is in your pom are also in the lib folder of the project. Otherwise do the following: Properties" -> "Deployment Assembly", add "Java Build Path Entries -> Maven Dependencies"

After a clean and install on your project, clear your server’s deploy directory. If Tomcat, right-click on the icon and go to "clean". Then go up the server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.