3

I am new to JSF and PrimeFaces (and new to stackoverflow) and am having a configuration/deployment problem. I am using PrimeFaces 5.0, Tomcat 7.0.55, and JSF 2.2. The JSF tags can be resolved and work, but the PrimeFaces tags are not resolved and give this error.

Here is the web page:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://primefaces.org/ui" prefix="p" %>
<f:loadBundle basename="resources/messages" var="msg"/>

<html>
    <head>
        <title>enter your name page</title>
    </head>
    <body>
        <f:view>
            <h1>
                <h:outputText value="#{msg.inputname_header}"/>
            </h1>
            <h:form id="helloForm">
                <h:outputText value="#{msg.prompt}"/>
                <h:inputText value="#{personBean.personName}" />
                <h:commandButton action="login" value="#{msg.button_text}" />
                <p:spinner />
            </h:form>
        </f:view>
    </body>
</html> 

The error message is: org.apache.jasper.JasperException: The absolute uri: http://primefaces.org/ui cannot be resolved in either web.xml or the jar files deployed with this application

Your help would be appreciated

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555

1 Answers1

4

You're using JSP. JSP is deprecated since JSF 2.0 (at date, almost 5 years ago already). Therefore, JSF 2.0 compatible component libraries don't support JSP anymore. PrimeFaces is such one. Already since PrimeFaces 2.0 it didn't support JSP.

Use JSP's successor Facelets instead.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • Thank you, that was most helpful. I've been doing web services and GWT for about 7 years now so I didn't know that JSPs were dinosaurs. Thank you for cluing me in. After changing this I found that I also needed to change the faces-config.xml file like this: – user3991484 Sep 01 '14 at 01:16
  • That worked and I now have my page with a PrimeFaces tag coming up just fine. Thank you – user3991484 Sep 01 '14 at 01:17