0 Replies Latest reply on Feb 3, 2014 1:15 PM by anoop m

    Concurrent modification exception.

    anoop m Newbie

      I am using richfaces 3.3.1 facelets 1version is 1.14. The issue is seen in production enviroment.

      Following errors are seen frequently in our logs and soon after this our production tomcat hangs and we needs to restart it. Not sure what is going wrong ?

       

      Error 1:

       

      java.util.ConcurrentModificationException

        at java.util.AbstractList$Itr.remove(AbstractList.java:380)

        at java.util.AbstractCollection.remove(AbstractCollection.java:283)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:176)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:64)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:64)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:175)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)

        at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)

        at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)

        at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)

        at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)

        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)

        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

       

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

       

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

       

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)

        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

        at java.lang.Thread.run(Thread.java:722)

       

      Error 2:

       

      java.util.ConcurrentModificationException

        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)

        at java.util.ArrayList$Itr.next(ArrayList.java:791)

        at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:151)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)

        at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)

        at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)

        at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)

        at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)

        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)

        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

       

       

      Error 3:

       

      java.util.ConcurrentModificationException

        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)

        at java.util.HashMap$ValueIterator.next(HashMap.java:922)

        at javax.faces.component._FacetsAndChildrenIterator.next(_FacetsAndChildrenIterator.java:55)

        at com.sun.facelets.tag.jsf.ComponentSupport.findChildByTagId(ComponentSupport.java:118)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:128)

        at com.sun.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:64)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.core.FacetHandler.apply(FacetHandler.java:64)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:119)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:175)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)

        at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310)

        at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280)

        at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

        at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

        at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

        at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144)

        at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)

        at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

        at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

        acom.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)

        at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)

        at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)

        at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

        at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)

        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

        at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

        at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

        at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

       

      web.xml:

       

       

      <!-- JSF configuration parameters -->

          <context-param>

              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

              <param-value>server</param-value>

          </context-param>

          <context-param>

          <param-name>org.richfaces.queue.global.enabled</param-name>

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

        </context-param>

        <context-param>

              <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>

              <param-value>5</param-value>

           </context-param>

          <context-param>

            <param-name>com.sun.faces.verifyObjects</param-name>

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

          </context-param>

          <context-param>

          <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>

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

        </context-param>

        <context-param>

              <param-name>facelets.REFRESH_PERIOD</param-name>

              <param-value>2</param-value>

          </context-param>

       

          <context-param>

            <param-name>com.sun.faces.validateXml</param-name>

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

          </context-param>

          <context-param>

            <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

            <param-value>.xhtml</param-value>

          </context-param>

          <context-param>

              <param-name>facelets.DEVELOPMENT</param-name>

              <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>facelets.SKIP_COMMENTS</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>

            <param-value> com.sun.facelets.FaceletViewHandler</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.PRETTY_HTML</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON</param-name>

            <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE</param-name>

            <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.RENDER_VIEWSTATE_ID</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.STRICT_XHTML_LINKS</param-name>

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

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.VIEWSTATE_JAVASCRIPT</param-name>

            <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>

            <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>

            <param-value>false</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>

            <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>

            <param-value>/faces/myFacesExtensionResource</param-value>

          </context-param>

          <context-param>

            <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>

            <param-value>false</param-value>

          </context-param>

         

          <!-- This is needed for JBoss App Server to work propertly -->

          <!-- Since JBoss comes with a built in implementation of JSF, this property forces it to use ours-->

           <context-param>

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

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

          </context-param>

       

       

          <context-param>

           <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>

           <param-value>NEKO</param-value>

        </context-param>

      :

      :

       

      -----

      Thanks