Servlet Faces - Error in context with path

Asked

Viewed 525 times

1

Good morning,

As I have already said in another topic is not my web area but I am trying to kkkk... After adding a Responsive template named Prologue I have the following error.

GRAVE: Servlet.service() for servlet [Faces Servlet] in context with path [/ibmo] threw exception [javax/servlet/jsp/jstl/core/Config] with root cause

java.lang.Classnotfoundexception: javax.servlet.jsp.jstl.core.Config

pom.xml

<!-- Repositórios -->

    <!-- PRIMEFACES -->
    <dependency>  
        <groupId>org.primefaces</groupId>  
        <artifactId>primefaces</artifactId>  
        <version>5.3</version>  
    </dependency>

    <!-- JSF API -->
    <dependency>
         <groupId>com.sun.faces</groupId>
         <artifactId>jsf-api</artifactId>
         <version>2.1.13</version>
    </dependency>

    <!-- JSF IMPL -->
    <dependency>
          <groupId>com.sun.faces</groupId>
          <artifactId>jsf-impl</artifactId>
          <version>2.1.13</version>
    </dependency>

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

    <!-- Implementação do JSF -->
    <dependency>
        <groupId>org.glassfish</groupId>
        <artifactId>javax.faces</artifactId>
        <version>2.2.8</version>
        <scope>compile</scope>
    </dependency>

1 answer

2


Add to your pom.xml:

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

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

And see if it works, that mistake ClassNotFoundException usually occurs when some library is absent from your project

  • Well, you did. Only now you’re saying in the execution of the page:"HTTP Status 404 - /ibmo/index.jsp" my page is html...

  • 1

    you have the index.jsp page in the project?

  • Worse than not. As I said I am using the template of the template is "index.html"

  • 1

    So you’ve already started wrong rs, so I saw you want to use JSF. If you’re really going to use JSF these templates won’t work.

  • 1

    Now, if you want you can use JSP, Spring, Struts. But for this you need to make other settings.

  • 1

    Ah, yeah. Thank you very much ! I’ll see what I do. Hug!

Show 1 more comment

Browser other questions tagged

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