1 Reply Latest reply on Jun 17, 2011 6:23 AM by Saroj Padhy

    problem in using 4.0.0.Final libs

    Ahmet temiz Novice

      hello

       

      I just want to replace v.4.0.0.Alpha2 SVN libs  with v 4-Final libs of an existing project.

       

      Doing this, I omitted ... WebContent/WEB-INF/lib/richfaces-core-api-4.0.0.Alpha2.jar and

      put richfaces-core-api-4.0.0.Final.jar and so on.

       

      What am I doing wrong ?

       

      But I encountered following errors after I imported the project to eclipse.

       

       

      INFO: Unsanitized stacktrace from failed start...

      com.sun.faces.config.ConfigurationException:

       

      Source Document: jar:file:/usr/local/workspace5/.metadata

      /.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps

      /richfaces4-start/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml

       

      Source Document: jar:file:/usr/local/workspace5/.metadata/.plugins/org.eclipse.wst.server.core

      /tmp0/wtpwebapps/richfaces4-start/WEB-INF/lib/richfaces-core-impl-4.0.0.Final.jar!/META-INF/faces-config.xml

        Cause: Unable to create a new instance of 'org.richfaces.resource.ResourceHandlerImpl':

      java.lang.reflect.InvocationTargetException

       

      regards

        • 1. Re: problem in using 4.0.0.Final libs
          Saroj Padhy Novice

          Hi,

           

          I have following libraries added in WebContent/WEB-INF/lib/ folder:

          untitled.JPG

           

          faces-config.xml

           

          <?xml version="1.0" encoding="UTF-8"?>
          <faces-config version="2.0"
              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-facesconfig_2_0.xsd">
          
          </faces-config>
          

           

          and 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">
              <display-name>richfaces 4 test</display-name>
              <context-param>
                  <param-name>org.richfaces.skin</param-name>
                  <param-value>ruby</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>
              <welcome-file-list>
                  <welcome-file>index.html</welcome-file>
                  <welcome-file>index.htm</welcome-file>
                  <welcome-file>index.jsp</welcome-file>
                  <welcome-file>default.html</welcome-file>
                  <welcome-file>default.htm</welcome-file>
                  <welcome-file>default.jsp</welcome-file>
              </welcome-file-list>
              <login-config>
                  <auth-method>BASIC</auth-method>
              </login-config>
          </web-app>
          

           

          It's working fine for me! Check it out if annything you missed.

           

          Saroj