7 Replies Latest reply on Oct 6, 2008 1:41 PM by Pete Muir

    Renderer crashes with 2.1.0.CR1

    Lars Braunholz Newbie

      Hello,


      after updating to 2.1.0.CR1 the sending of emails crashes.
      It seems like a missing Filter, but i couldn't figure it out.





      12:49:40,669 INFO  [MailSession] Creating JavaMail Session (mail.gmx.net:25)
      12:49:40,676 INFO  [MailSession] connected to mail server
      12:49:40,714 ERROR [STDERR] javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:122)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:314)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:218)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:64)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.BaseResourceRenderer.encode(BaseResourceRenderer.java:47)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.resource.InternetResourceBase.encode(InternetResourceBase.java:313)
      12:49:40,715 ERROR [STDERR]     at org.ajax4jsf.renderkit.HeaderResourcesRendererBase.encodeResourcesArray(HeaderResourcesRendererBase.java:144)
      12:49:40,734 ERROR [STDERR]     at org.ajax4jsf.renderkit.HeaderResourcesRendererBase.preEncodeBegin(HeaderResourcesRendererBase.java:128)
      12:49:40,734 ERROR [STDERR]     at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:98)
      12:49:40,734 ERROR [STDERR]     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
      12:49:40,734 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:172)
      12:49:40,734 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
      12:49:40,734 ERROR [STDERR]     at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:85)
      12:49:40,734 ERROR [STDERR]     at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:59)
      12:49:40,734 ERROR [STDERR]     at org.jboss.seam.mail.ui.UIBody.encodeChildren(UIBody.java:44)
      
      .....
      
      
      12:49:40,742 ERROR [STDERR]     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      12:49:40,742 ERROR [STDERR]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      12:49:40,742 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:613)
      12:49:40,742 INFO  [PersonenListeBean] Email senden fehlgeschlagen: Resources framework is not initialised, check web.xml for Filter configuration




      web.xml



      <?xml version="1.0" ?>
      <web-app 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" 
               version="2.5">
      
          <!-- Ajax4jsf -->
          
          <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>darkX</param-value>
          </context-param>
       
          <filter> 
              <display-name>RichFaces Filter</display-name>
              <filter-name>richfaces</filter-name> 
              <filter-class>org.ajax4jsf.Filter</filter-class> 
          </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>
          
         <listener>
            <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
         </listener>
          
          <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          </filter>
          
           <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
              <init-param>
                      <param-name>createTempFiles</param-name>
                      <param-value>false</param-value>
              </init-param>
              <init-param>
                      <param-name>maxRequestSize</param-name>
                      <!-- 10 MB max -->
                      <param-value>10485760</param-value>
              </init-param>
          </filter>
           
          <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
      
         <servlet>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
         </servlet>
          
         <servlet-mapping>
            <servlet-name>Seam Resource Servlet</servlet-name>
            <url-pattern>/seam/resource/*</url-pattern>
         </servlet-mapping>
         
         
         <context-param>
            <param-name>facelets.DEVELOPMENT</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>
      
         <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>*.seam</url-pattern>
         </servlet-mapping>
                        
         <security-constraint> 
            <display-name>Restrict raw XHTML Documents</display-name>
            <web-resource-collection>
                <web-resource-name>XHTML</web-resource-name>
                <url-pattern>*.xhtml</url-pattern>
            </web-resource-collection>
            <auth-constraint/>
         </security-constraint>
      
      </web-app>