2 Replies Latest reply on Feb 14, 2012 6:05 PM by Trip Sharma

    RichFaces 4.0.0cr1 Problem

    Mohammad Weshah Novice

      I have the following problem when i run my application :

       

      org.apache.jasper.JasperException: The absolute uri: http://richfaces.org/a4j cannot be resolved in either web.xml or the jar files deployed with this application

       

      i addec all jar files that is required :

      richfaces-core-api-4.0.0.20110227-CR1.jar

      richfaces-components-ui-4.0.0.20110227-CR1.jar

      richfaces-core-impl-4.0.0.20110227-CR1.jar

      richfaces-components-api-4.0.0.20110227-CR1.jar

      sac-1.3, cssparser-0.9.5

      - required for components CSS work

      - google-guava-r06 - core runtime dependency.

       

      my web.xml :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

          id="WebApp_ID" version="2.5">

          <display-name>core-demo</display-name>

       

       

          <!-- Configuration de RichFaces -->

          <context-param>

              <param-name>org.ajax4jsf.SKIN</param-name>

              <param-value>blueSky</param-value>

          </context-param>

       

          <context-param>

              <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>

              <param-value>false</param-value>

          </context-param>

          <context-param>

              <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>

              <param-value>NEKO</param-value>

          </context-param>

          <context-param>

              <param-name>org.richfaces.LoadStyleStrategy</param-name>

              <param-value>ALL</param-value>

          </context-param>

       

       

       

       

          <context-param>

              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

              <param-value>client</param-value>

          </context-param>

       

          <context-param>

              <param-name>javax.faces.PROJECT_STAGE</param-name>

              <param-value>Development</param-value>

          </context-param>

       

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.jsf</url-pattern>

          </servlet-mapping>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>/faces/*</url-pattern>

          </servlet-mapping>

      </web-app>

       

      my screen :

       

      <!doctype html public "-//w3c//dtd html 4.0 transitional//en">

      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

      <!-- RichFaces tag library declaration -->

      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

       

      <html>

      <head>

      <title>RichFaces Greeter</title>

      </head>

       

      <body>

          <f:view>

              <a4j:form>

                  <rich:panel header="RichFaces Greeter" style="width: 315px">

                      <h:outputText value="Your name: " />

                      <h:inputText value="#{user.name}">

                          <f:validateLength minimum="1" maximum="30" />

                      </h:inputText>

       

                        <a4j:commandButton value="Get greeting" reRender="greeting" />

       

                      <h:panelGroup id="greeting">

                          <h:outputText value="Hello, " rendered="#{not empty user.name}" />

                          <h:outputText value="#{user.name}" />

                          <h:outputText value="!" rendered="#{not empty user.name}" />

                      </h:panelGroup>

       

              </rich:panel>

       

              </a4j:form>

       

          </f:view>

       

      </body>

       

      </html>

        • 1. RichFaces 4.0.0cr1 Problem
          Ilya Shaikovsky Master

          JSF deprecated JSP. So RichFaces decided do not support it from the beggining.

          • 2. Re: RichFaces 4.0.0cr1 Problem
            Trip Sharma Newbie

            hey there,

             

            whats the meaning of : JSF deprecated JSP. So RichFaces decided do not support it from the beggining

            //do i need to remove some jars? , or add some jars? , which jars?

            or do i need to change some configs ?????

             

            I am getting exactly the same err msg,

            Can not find the tag library descriptor for http://richfaces.org/rich

            org.apache.jasper.JasperException: The absolute uri: http://richfaces.org/rich cannot be resolved in either web.xml or the jar files deployed with this application

            here is the list of jar files i have in lib dir:

            common-annotations.jar
            commons-beanutils.jar
            commons-collections.jar
            commons-digester.jar
            commons-logging.jar
            cssparser-0.9.5.jar
            guava-r08.jar
            javax.faces-2.1.6.jar
            richfaces-components-api-4.1.0.Final.jar
            richfaces-components-ui-4.1.0.Final.jar
            richfaces-core-api-4.1.0.Final.jar
            richfaces-core-impl-4.1.0.Final.jar
            sac-1.3.jar