1 Reply Latest reply on Jul 6, 2010 5:38 PM by Nick Belaevski

    Errors with upgrade to JSF.2 and Richfaces 3.3.3

    Phil Wilson Newbie

      Hi Guys,

       

      We have an app running fine with JSF 2 and Richfaces 3.2. I tried to upgrade this weekend  to Richfaces 3.3.3 and getting a few errors.

       

      I went thru several posts on the upgrade.

      http://in.relation.to/14509.lace

      http://community.jboss.org/message/529847

      https://community.jboss.org/message/532354#532354

       

      It seems to be some sort of a logging issue. It does work fine with Richfaces 3.2.

      org.apache.commons.logging.LogConfigurationException

      Any help would be great.
      Thanks
      Phil

       

      This is the output I get from Debian.

       

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: Servlet execution threw an exception
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
           org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      root cause

      java.lang.ExceptionInInitializerError
           sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           java.lang.Class.newInstance0(Class.java:355)
           java.lang.Class.newInstance(Class.java:308)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.init(RenderPhaseComponentVisitorUtils.java:78)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.getVisitors(RenderPhaseComponentVisitorUtils.java:55)
           org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:64)
           org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:188)
           org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:510)
           javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
           com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
           com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
           org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
           org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      root cause

      org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
           org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)
           org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
           org.ajax4jsf.context.RenderPhaseViewResourcesVisitor.<clinit>(RenderPhaseViewResourcesVisitor.java:68)
           sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           java.lang.Class.newInstance0(Class.java:355)
           java.lang.Class.newInstance(Class.java:308)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.init(RenderPhaseComponentVisitorUtils.java:78)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.getVisitors(RenderPhaseComponentVisitorUtils.java:55)
           org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:64)
           org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:188)
           org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:510)
           javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
           com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
           com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
           org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
           org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      root cause

      org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
           org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420)
           org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)
           org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
           org.ajax4jsf.context.RenderPhaseViewResourcesVisitor.<clinit>(RenderPhaseViewResourcesVisitor.java:68)
           sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           java.lang.Class.newInstance0(Class.java:355)
           java.lang.Class.newInstance(Class.java:308)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.init(RenderPhaseComponentVisitorUtils.java:78)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.getVisitors(RenderPhaseComponentVisitorUtils.java:55)
           org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:64)
           org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:188)
           org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:510)
           javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
           com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
           com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
           org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
           org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      root cause

      org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log
           org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
           org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
           org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)
           org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
           org.ajax4jsf.context.RenderPhaseViewResourcesVisitor.<clinit>(RenderPhaseViewResourcesVisitor.java:68)
           sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           java.lang.Class.newInstance0(Class.java:355)
           java.lang.Class.newInstance(Class.java:308)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.init(RenderPhaseComponentVisitorUtils.java:78)
           org.richfaces.util.RenderPhaseComponentVisitorUtils.getVisitors(RenderPhaseComponentVisitorUtils.java:55)
           org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:64)
           org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:188)
           org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:510)
           javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
           com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
           com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
           org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
           org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
           com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
           com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
           com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
           org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
           org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
           org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
           org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
           org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
           org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
           org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
           org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
           org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:717)