MyFaces Core
  1. MyFaces Core
  2. MYFACES-2134

org.apache.myfaces.CONFIG_REFRESH_PERIOD != 0 causes a myfaces failure

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.5
    • Fix Version/s: 1.2.7
    • Component/s: General
    • Labels:
      None
    • Environment:
      Linux, JDK 1.5, Tomcat 6

      Description

      When the context param org.apache.myfaces.CONFIG_REFRESH_PERIOD is != 0 (which seems to be the default) the second page request causes a
      javax.faces.FacesException: Undefined component type javax.faces.ViewRoot Exception.

      In FacesConfigurator.class method void update() the method purgeConfiguration() is called. This method throws an NoSuchMethodException. In the catch block for this Exception there is a return; - so the configure(); below isn't called.

      It looks like RenderKitFactory and / or CoreRenderKitFactory (trinidad) doesn't implement the purgeRenderKit method which is called by reflection from the purgeConfiguration() method - so the Exception rises up.

      Setting the context param org.apache.myfaces.CONFIG_REFRESH_PERIOD to 0 works because the purgeConfiguration() is never called then.

      Regards from Felix @itemis Bonn

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Felix Becker
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development