1 Reply Latest reply on Apr 15, 2011 6:07 AM by tuan_20070904

    Richfaces 3.3.3, jsf 1,2 and jboss 4.2.3

    tuan_20070904

      Hi, i use Netbean 6.9.1 to build demo web application. When I press F6(Run probject ) it' Ok but i press Shift+f6(Run file ) there is some Error:

       

      org.apache.jasper.JasperException: file:C:/Users/tuan/Documents/NetBeansProjects/WebApplication3/build/web/newjsf.jsp(9,55) PWC6188: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application

      org.apache.jasper.JasperException:  PWC6188: The absolute uri: http://java.sun.com/jsf/core cannot be resolved in either web.xml or the jar files deployed with this application

      C:/Users/tuan/Documents/NetBeansProjects/WebApplication3/build/web/newjsf.jsp(9,55)

      C:\Users\tuan\Documents\NetBeansProjects\WebApplication3\nbproject\build-impl.xml:575: Java returned: 1

      BUILD FAILED (total time: 1 second)

       

      My web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
          <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>blueSky</param-value>
          </context-param>
           <context-param>
              <param-name>org.richfaces.CONTROL_SKINNING</param-name>
              <param-value>enable</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>javax.faces.PROJECT_STAGE</param-name>
              <param-value>Development</param-value>
          </context-param>
          <filter>
              <display-name>RichFaces Filter</display-name>
              <filter-name>richfaces</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
          </filter>
          <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>
          <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.jsf</url-pattern>
          </servlet-mapping>
          <session-config>
              <session-timeout>
                  30
              </session-timeout>
          </session-config>
          <welcome-file-list>
              <welcome-file>faces/welcomeJSF.jsp</welcome-file>
          </welcome-file-list>
      </web-app>
      
      


      my Lib: commons-beanutils-1.8.3,

      commons-collections-3.2.1,

      commons-digester-2.1,

      commons-logging-1.1.1

      richfaces-api-3.3.3.Final,

      richfaces-impl-3.3.3.Final,

      richfaces-impl-jsf2-3.3.3.Final,

      richfaces-ui-3.3.3.Final

      JSTL1.1-standard

      JSTL 1.1-jstl

      Sorry my englist not good.

      Thank for help!

        • 1. Re: Richfaces 3.3.3, jsf 1,2 and jboss 4.2.3
          tuan_20070904

          Sorry i have fix it, add jsf-api and jsf-impl to Libraries and add to web.xml:

          <context-param>

                  <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

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

              </context-param>

          But new  error  come:

          Exception sending context destroyed event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

          java.lang.NullPointerException

                  at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:234)

                  at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3895)

                  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4527)

                  at org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1163)

                  at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4617)

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  at java.lang.reflect.Method.invoke(Method.java:597)

          Please help me