0 Replies Latest reply on Jul 24, 2013 5:35 PM by aryanjaiswal

    Jboss 4.2.3: Reloading the Faces-config.xml again and again on every UI click

    aryanjaiswal

      Hi All,

       

      I am facing the one weird issue. On my Jboss 4.2.3 once server starts it load the faces-config.xml for first time thats fine.

       

      But when I logged into the application as a user and click on the pages it tries to load faces-config.xml for following liabraries from the war on every click which leads to slowness of the response.

       

      These issue is not consistent. Its happening on the ST enviironment (Linux box) but not on my development jboss which is windows 7.

       

      so I install fresh jboss on another linux box and after some time same issue started happening.

       

      all the help is highly appreciated.

       

      Thanks

      Novin

       

       

      following is the LOG on each click jboss prints where it tries to load config again and again.

      ===================================================================================

      2013-07-10 16:57:01 FacesConfigurator [INFO] MyFaces-package : tomahawk-sandbox not found.

      2013-07-10 16:57:01 FacesConfigurator [INFO] Starting up MyFaces-package : tomahawk in version : 1.1.6 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/tomahawk-1.1.6.jar

      2013-07-10 16:57:02 RenderKitFactoryImpl [INFO] RenderKit with renderKitId 'HTML_BASIC' was replaced.

      2013-07-10 16:57:02 OnLoadPhaseListener [INFO] OnLoadPhaseListener created

      2013-07-10 16:57:02 FacesConfigurator [INFO] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory

      2013-07-10 16:57:02 OnLoadPhaseListener [INFO] On Load configuration is being loaded from /WEB-INF/onload-config.xml

      2013-07-10 16:57:02 OnLoadPhaseListener [INFO] 85 rule(s) have been found

      2013-07-10 17:12:02 FacesConfigurator [INFO] Reading standard config META-INF/standard-faces-config.xml

      2013-07-10 17:12:02 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/richfaces-impl-3.3.1.GA.jar!/META-INF/faces-config.xml

      2013-07-10 17:12:02 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/faces-config.xml

      2013-07-10 17:12:02 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml

      2013-07-10 17:12:02 FacesConfigurator [INFO] Reading config /WEB-INF/faces-config.xml

      2013-07-10 17:12:02 FacesConfigurator [INFO] Starting up MyFaces-package : myfaces-api in version : 1.2.5 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/myfaces-api-1.2.5.jar

      2013-07-10 17:12:03 FacesConfigurator [INFO] Starting up MyFaces-package : myfaces-impl in version : 1.2.5 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/WEB-INF/lib/myfaces-impl-1.2.5.jar

      2013-07-10 17:12:03 FacesConfigurator [INFO] MyFaces-package : tomahawk-sandbox15 not found.

      2013-07-10 17:12:03 FacesConfigurator [INFO] MyFaces-package : tomahawk-sandbox not found.

       

       

       

      following is the log when server is starting

      =================================

       

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource

      2013-07-24 16:25:51 MyfacesConfig [INFO] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true

      2013-07-24 16:25:51 MyfacesConfig [INFO] Starting up Tomahawk on the RI-JSF-Implementation.

      2013-07-24 16:25:51 MyfacesConfig [INFO] Starting up Tomahawk on the MyFaces-JSF-Implementation

      2013-07-24 16:25:51 MyfacesConfig [ERROR] Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.

      2013-07-24 16:25:51 FacesConfigurator [INFO] Reading standard config META-INF/standard-faces-config.xml

      2013-07-24 16:25:51 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/richfaces-impl-3.3.1.GA.jar!/META-INF/faces-config.xml

      2013-07-24 16:25:51 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/faces-config.xml

      2013-07-24 16:25:51 FacesConfigurator [INFO] Reading config : jar:file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml

      2013-07-24 16:25:51 FacesConfigurator [INFO] Reading config /WEB-INF/faces-config.xml

      2013-07-24 16:25:51 FacesConfigurator [INFO] Starting up MyFaces-package : myfaces-api in version : 1.2.5 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/myfaces-api-1.2.5.jar

      2013-07-24 16:25:51 FacesConfigurator [INFO] Starting up MyFaces-package : myfaces-impl in version : 1.2.5 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/myfaces-impl-1.2.5.jar

      2013-07-24 16:25:51 FacesConfigurator [INFO] MyFaces-package : tomahawk-sandbox15 not found.

      2013-07-24 16:25:51 FacesConfigurator [INFO] MyFaces-package : tomahawk-sandbox not found.

      2013-07-24 16:25:51 FacesConfigurator [INFO] Starting up MyFaces-package : tomahawk in version : 1.1.6 from path : file:/home/jboss/jboss-4.2.3.GA/server/myinstance/tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war//WEB-INF/lib/tomahawk-1.1.6.jar

      2013-07-24 16:25:53 OnLoadPhaseListener [INFO] OnLoadPhaseListener created

      2013-07-24 16:25:53 FacesConfigurator [INFO] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory

      2013-07-24 16:25:53 AbstractFacesInitializer [INFO] ServletContext '/home/jboss/jboss-4.2.3.GA/server/default/./tmp/deploy/tmp488114554950857850MyWar-1.6.33.9-exp.war/' initialized.

      2013-07-24 16:26:01 ConfigurationBootstrap [INFO] Adding scanned resource: com.yt.lis.mypackage.restService.RestRequestService

      2013-07-24 16:26:02 ContextLoader [INFO] Root WebApplicationContext: initialization started

      2013-07-24 16:26:02 XmlWebApplicationContext [INFO] Refreshing org.springframework.web.context.support.XmlWebApplicationContext@70bde4a2: display name [Root WebApplicationContext]; startup date [Wed Jul 24 16:26:02 GMT-05:00 2013]; root of context hierarchy

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-acegi.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-scheduler.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-jmx.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-jms.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-abc.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-chat.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-common.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-ta.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-managedBeans.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-aop.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-container.xml]

      2013-07-24 16:26:02 XmlBeanDefinitionReader [INFO] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]

      2013-07-24 16:26:03 XmlWebApplicationContext [INFO] Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@70bde4a2]: