2 Replies Latest reply on Jun 2, 2012 12:48 PM by Carlos Chuquillanqui

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

    techless brainless Newbie

      Hi All,

       

      Using JSf 1.2/Richfaces 3.2.1 on Jboss 4.2 am trying to develop a small JSF/Richfaces Application , but am getting the following error

       

      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

      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)

      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)

      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)

      org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)

      org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)

      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)

      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)

      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)

      org.apache.jasper.compiler.Parser.parse(Parser.java:133)

      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)

      org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)

      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)

      org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)

      org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)

      org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)

      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)

      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)

      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)

      com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)

      com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)

      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)

      com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)

      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)

      javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

          

       

      index.jsp

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

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

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

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

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

       

      <html>

      <head>

      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

          <title>Login Page</title>

      </head>

      <f:view>

          <center>

              <h:panelGrid width="40%" columns="2" columnClasses="col1,col2">

              <rich:panel>

          Hello World

              </rich:panel>

              </h:panelGrid>

          </center>

      </f:view>

      </html>

       

       

      web.xml

       

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

      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

      <display-name>Welcome</display-name>

       

      <!--    <context-param>

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

        <param-value>.xhtml</param-value>

      </context-param> -->

      <context-param>

        <param-name>facelets.REFRESH_PERIOD</param-name>

        <param-value>2</param-value>

      </context-param>

      <context-param>

        <param-name>facelets.DEVELOPMENT</param-name>

        <param-value>true</param-value>

      </context-param>

      <context-param>

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

        <param-value>server</param-value>

      </context-param>

      <context-param>

        <param-name>com.sun.faces.validateXml</param-name>

        <param-value>true</param-value>

      </context-param>

      <context-param>

        <param-name>com.sun.faces.verifyObjects</param-name>

        <param-value>true</param-value>

      </context-param>

       

        <context-param>

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

      <param-value>classic</param-value>

      </context-param>

       

       

      <!-- <filter-mapping>

      <filter-name>richfaces</filter-name>

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

      <dispatcher>REQUEST</dispatcher>

      <dispatcher>FORWARD</dispatcher>

      <dispatcher>INCLUDE</dispatcher>

      </filter-mapping>

      -->

       

      <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>*.faces</url-pattern>

      </servlet-mapping>

       

       

      </web-app>

       

       

       

      help me to fix this issue