java.lang.NoClassDefFoundError: org/apache/myfaces/renderkit/StateCacheUtils

Spring JIRA | Alexander Holcik | 2 years ago
  1. 0

    In [this change|https://github.com/spring-projects/spring-webflow/pull/8/files] {{org.springframework.faces.webflow.MyFacesFlowResponseStateManager}} was added as the new ResponseStateManager when using myfaces and spring webflow. This class uses {{org.apache.myfaces.renderkit.StateCacheUtils}}. Unfortunally StateCacheUitils was repackaged to {{org.apache.myfaces.application.viewstate}} in myfaces version 2.1.10. This causes the following Exception when usering 2.1.10 or higher: {noformat} java.lang.NoClassDefFoundError: org/apache/myfaces/renderkit/StateCacheUtils at org.springframework.faces.webflow.MyFacesFlowResponseStateManager.getWrappedMyfacesResponseStateManager(MyFacesFlowResponseStateManager.java:66) at org.springframework.faces.webflow.MyFacesFlowResponseStateManager.isWriteStateAfterRenderViewRequired(MyFacesFlowResponseStateManager.java:70) at org.apache.myfaces.application.ViewHandlerImpl.setWritingState(ViewHandlerImpl.java:371) at org.apache.myfaces.application.ViewHandlerImpl.writeState(ViewHandlerImpl.java:315) at javax.faces.application.ViewHandlerWrapper.writeState(ViewHandlerWrapper.java:65) at org.apache.myfaces.shared.renderkit.html.HtmlFormRendererBase.encodeEnd(HtmlFormRendererBase.java:220) ... {noformat} There ist an ugly workaround for this. I'm going to post it on [stackoverflow|http://stackoverflow.com/questions/16377054/spring-web-flow-with-jsf-classnotfoundexception-issue].

    Spring JIRA | 2 years ago | Alexander Holcik
    java.lang.NoClassDefFoundError: org/apache/myfaces/renderkit/StateCacheUtils
  2. 0

    In [this change|https://github.com/spring-projects/spring-webflow/pull/8/files] {{org.springframework.faces.webflow.MyFacesFlowResponseStateManager}} was added as the new ResponseStateManager when using myfaces and spring webflow. This class uses {{org.apache.myfaces.renderkit.StateCacheUtils}}. Unfortunally StateCacheUitils was repackaged to {{org.apache.myfaces.application.viewstate}} in myfaces version 2.1.10. This causes the following Exception when usering 2.1.10 or higher: {noformat} java.lang.NoClassDefFoundError: org/apache/myfaces/renderkit/StateCacheUtils at org.springframework.faces.webflow.MyFacesFlowResponseStateManager.getWrappedMyfacesResponseStateManager(MyFacesFlowResponseStateManager.java:66) at org.springframework.faces.webflow.MyFacesFlowResponseStateManager.isWriteStateAfterRenderViewRequired(MyFacesFlowResponseStateManager.java:70) at org.apache.myfaces.application.ViewHandlerImpl.setWritingState(ViewHandlerImpl.java:371) at org.apache.myfaces.application.ViewHandlerImpl.writeState(ViewHandlerImpl.java:315) at javax.faces.application.ViewHandlerWrapper.writeState(ViewHandlerWrapper.java:65) at org.apache.myfaces.shared.renderkit.html.HtmlFormRendererBase.encodeEnd(HtmlFormRendererBase.java:220) ... {noformat} There ist an ugly workaround for this. I'm going to post it on [stackoverflow|http://stackoverflow.com/questions/16377054/spring-web-flow-with-jsf-classnotfoundexception-issue].

    Spring JIRA | 2 years ago | Alexander Holcik
    java.lang.NoClassDefFoundError: org/apache/myfaces/renderkit/StateCacheUtils
  3. 0

    MyFaces and WebSphere 6.0

    Google Groups | 1 decade ago | sagar...@gmail.com
    java.lang.NoClassDefFoundError: org/apache/myfaces/webapp/StartupServletContextListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DTD Validation

    Google Groups | 1 decade ago | at...@amentra.com
    java.lang.NoClassDefFoundError: org/apache/myfaces/webapp/StartupServletContextListener

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      org/apache/myfaces/renderkit/StateCacheUtils

      at org.springframework.faces.webflow.MyFacesFlowResponseStateManager.getWrappedMyfacesResponseStateManager()
    2. org.springframework.faces
      MyFacesFlowResponseStateManager.isWriteStateAfterRenderViewRequired
      1. org.springframework.faces.webflow.MyFacesFlowResponseStateManager.getWrappedMyfacesResponseStateManager(MyFacesFlowResponseStateManager.java:66)
      2. org.springframework.faces.webflow.MyFacesFlowResponseStateManager.isWriteStateAfterRenderViewRequired(MyFacesFlowResponseStateManager.java:70)
      2 frames
    3. Impl
      ViewHandlerImpl.writeState
      1. org.apache.myfaces.application.ViewHandlerImpl.setWritingState(ViewHandlerImpl.java:371)
      2. org.apache.myfaces.application.ViewHandlerImpl.writeState(ViewHandlerImpl.java:315)
      2 frames
    4. JavaEE 7
      ViewHandlerWrapper.writeState
      1. javax.faces.application.ViewHandlerWrapper.writeState(ViewHandlerWrapper.java:65)
      1 frame
    5. Apache MyFaces Shared For JSF 2.0 - Core Mirror
      HtmlFormRendererBase.encodeEnd
      1. org.apache.myfaces.shared.renderkit.html.HtmlFormRendererBase.encodeEnd(HtmlFormRendererBase.java:220)
      1 frame