5 Replies Latest reply on Mar 14, 2011 10:59 AM by ilya_shaikovsky

    Problem with javax.faces.render.RenderKitFactory

    edilmar

      Hi,

       

      My webapp is JSF2/RichFaces3.3.3/GlassFish3.0.1/CDI-Weld.

      My webapp runs fine for many days or weeks.

      However, sometimes, after this period, GlassFish arises the exception below,

      and I need to stop/start GlassFish, not only redeploy the webapp.

      I don't know if this is a problem with JSF2 or RichFaces3.3.3.

      Has someone be this problem?

       

      javax.servlet.ServletException: java.lang.IllegalStateException: Oaplicativo não foi iniciado corretamente na inicialização. Não foipossível encontrar Fábrica: javax.faces.render.RenderKitFactory

              atjavax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)

              at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)

              atcom.sun.faces.renderkit.RenderKitUtils.getResponseStateManager(RenderKitUtils.java:204)

              atcom.sun.faces.context.FacesContextImpl.isPostback(FacesContextImpl.java:211)

              atcom.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:195)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              atcom.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)

              atcom.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

              atjavax.faces.webapp.FacesServlet.service(FacesServlet.java:312)

       

      My web.xml is here:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

        <context-param>

          <param-name>org.richfaces.SKIN</param-name>

          <param-value>glassX</param-value>

        </context-param>

        <!-- Making the RichFaces skin spread to standard HTML controls -->

        <context-param>

          <param-name>org.richfaces.CONTROL_SKINNING</param-name>

          <param-value>enable</param-value>

        </context-param>

        <!-- Defining and mapping the RichFaces filter -->

        <filter>

          <display-name>RichFaces Filter</display-name>

          <filter-name>richfaces</filter-name>

          <filter-class>org.ajax4jsf.Filter</filter-class>

          <init-param>

            <param-name>enable-cache</param-name>

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

          </init-param>

        </filter>

        <filter-mapping>

          <filter-name>richfaces</filter-name>

          <servlet-name>Faces Servlet</servlet-name>

          <dispatcher>REQUEST</dispatcher>

          <dispatcher>FORWARD</dispatcher>

          <dispatcher>INCLUDE</dispatcher>

        </filter-mapping>

       

        <!-- Configuracoes de otimizacao do RichFaces -->

        <context-param>

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

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

        </context-param>

        <context-param>

          <param-name>org.richfaces.LoadStyleStrategy</param-name>

          <param-value>all</param-value>

        </context-param>

        <context-param>

          <param-name>org.richfaces.LoadScriptStrategy</param-name>

          <param-value>all</param-value>

        </context-param>

        <!--

        <context-param>

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

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

        </context-param>

        <context-param>

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

          <param-value>.*\..*</param-value>

        </context-param>

        -->

       

        <context-param>

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

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

        </context-param>

        <context-param>

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

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

        </context-param>

        <context-param>

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

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

        </context-param>

        <context-param>

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

          <param-value>client</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>true</param-value>

        </context-param>

       

        <servlet>

          <servlet-name>Faces Servlet</servlet-name>

          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

          <load-on-startup>1</load-on-startup>

        </servlet>

        <servlet-mapping>

          <servlet-name>Faces Servlet</servlet-name>

          <url-pattern>*.jsf</url-pattern>

        </servlet-mapping>

        <session-config>

          <session-timeout>

                  10

          </session-timeout>

        </session-config>

        <welcome-file-list>

          <welcome-file>index.jsp</welcome-file>

        </welcome-file-list>

       

        <security-constraint>

          <display-name>Restrict XHTML Documents</display-name>

          <web-resource-collection>

            <web-resource-name>XHTML</web-resource-name>

            <url-pattern>*.xhtml</url-pattern>

          </web-resource-collection>

          <auth-constraint>

            <description>Somente desenvolvedores terão acesso aos arquivos XHTML</description>

            <role-name>developer</role-name>

          </auth-constraint>

        </security-constraint>

       

        <error-page>

          <exception-type>javax.enterprise.context.NonexistentConversationException</exception-type>

          <location>/expired.html</location>

        </error-page>

        <error-page>

          <exception-type>org.jboss.weld.context.NonexistentConversationException</exception-type>

          <location>/expired.html</location>

        </error-page>

        <error-page>

          <exception-type>javax.faces.application.ViewExpiredException</exception-type>

          <location>/expired.html</location>

        </error-page>

       

      </web-app>