4 Replies Latest reply on Feb 18, 2008 6:18 PM by Pete Muir

    Seam 2 + richfaces + trinidad

    Guillaume Jeudy Master


      Hi,

      Has anyone got seam 2.0.1, richfaces 3.1.4, trinidad 1.2.1 combo working ? I followed the seam discs example and couldn't get it to work.

      I posted the issue on the richfaces forum on the following link.

      http://jboss.com/index.html?module=bb&op=viewtopic&p=4129177#4129177[My Link=>]

      quick recap of the issue:

      I have a page that rerenders using a4j richfaces components, it doesnt have any trinidad component. This works fine with seam 2, richfaces only.

      its using a4j:commandButton rerender="searchResults".

      The target is a4j:outputPanel id="searchResults"

      `<a4j:commandButton id="findRefDomains" value="Find Reference Domain Objects" action="#{refDomainSearch.find}" reRender="searchResults"/>`

      Inside a4j:outputPanel I use a rich:listShuttle.

      I get the below stack:
      `
      2008-02-12 17:38:48,806 DEBUG [org.jboss.seam.contexts.FacesLifecycle] <<< End JSF request for /ReferenceDataManager/editPackageItems.seam
      2008-02-12 17:38:48,806 ERROR [org.jboss.seam.web.ExceptionFilter] handling uncaught exception
      javax.servlet.ServletException: No RenderingContext
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl
      .java:208)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.j
      ava:165)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:1
      38)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalStateException: No RenderingContext
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:181)
           at org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRen
      derer.java:56)
           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
           at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:
      79)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
           at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
           at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
           at org.ajax4jsf.context.AjaxContextImpl.renderAjaxRegion(AjaxContextImpl.java:286)
           at org.ajax4jsf.context.AjaxContextImpl$2.invoke(AjaxContextImpl.java:201)
           at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
           at org.ajax4jsf.context.AjaxContextImpl.invokeOnComponent(AjaxContextImpl.java:157)
           at org.ajax4jsf.context.AjaxContextImpl.renderSubmittedAjaxRegion(AjaxContextImpl.java:215)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:239)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           ... 45 more
      2008-02-12 17:38:48,806 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
      java.lang.IllegalStateException: No RenderingContext
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:181)
           at org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRen
      derer.java:56)
           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
           at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:
      79)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
           at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
           at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
           at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
           at org.ajax4jsf.context.AjaxContextImpl.renderAjaxRegion(AjaxContextImpl.java:286)
           at org.ajax4jsf.context.AjaxContextImpl$2.invoke(AjaxContextImpl.java:201)
           at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
           at org.ajax4jsf.context.AjaxContextImpl.invokeOnComponent(AjaxContextImpl.java:157)
           at org.ajax4jsf.context.AjaxContextImpl.renderSubmittedAjaxRegion(AjaxContextImpl.java:215)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:239)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl
      .java:208)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.j
      ava:165)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:1
      38)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
      )
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:595)`

        • 1. Re: Seam 2 + richfaces + trinidad
          Guillaume Jeudy Master

          My message got broken, try this link to see whats the issue, I posted the stacktrace there,


          Richfaces forum link


          If I remove trinidad from the mix it works normally.


          Below is my web.xml.


          
          <?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>blueSky</param-value>
          
               </context-param>
          
              
          
               <!-- Seam -->
          
          
               <listener>
          
                    <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
          
               </listener>
          
          
               <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>
          
          
               <filter>
          
                    <filter-name>Seam Filter</filter-name>
          
                    <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
          
               </filter>
          
          
               <filter-mapping>
          
                    <filter-name>Seam Filter</filter-name>
          
                    <url-pattern>/*</url-pattern>
          
               </filter-mapping>
          
          
               <!-- JSF -->
          
               <!-- <context-param>
          
                    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          
                    <param-value>client</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>
          
          
               <context-param>
          
                    <param-name>facelets.LIBRARIES</param-name>
          
                    <param-value>/WEB-INF/taglib/archrdm.taglib.xml</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>
          
          
               <!-- Trinidad - as suggested by a4j-trinidad example-->
          
          
               <context-param>
          
                    <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
          
                    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
          
               </context-param>
          
          
               <filter>
          
                    <filter-name>Trinidad</filter-name>
          
                    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
          
               </filter>
          
          
               <filter-mapping>
          
                    <filter-name>Trinidad</filter-name>
          
                    <url-pattern>*.seam</url-pattern>
          
               </filter-mapping>
          
          
               <context-param>
          
                    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
          
                    <param-value>false</param-value>
          
               </context-param>
          
          
               <servlet>
          
                    <servlet-name>Trinidad Resources</servlet-name>
          
                    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
          
               </servlet>
          
          
               <servlet-mapping>
          
                    <servlet-name>Trinidad Resources</servlet-name>
          
                    <url-pattern>/adf/*</url-pattern>
          
               </servlet-mapping>
          
          
               <context-param>
          
                    <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
          
                    <param-value>true</param-value>
          
               </context-param>  
          
          
               <!-- Spring -->
          
               <servlet>
          
                    <servlet-name>Spring loader Servlet</servlet-name>
          
                    <servlet-class>
          
                         com.archinsurance.web.servlet.SpringLoaderServlet
          
                    </servlet-class>
          
                    <load-on-startup>1</load-on-startup>
          
                    <init-param>
          
                         <param-name>springFileName</param-name>
          
                         <param-value>referenceDataManagerSpring.xml</param-value>
          
                    </init-param>
          
               </servlet>
          
          
               <!-- NTLM SSO Authentication Filter -->
          
          
               <filter>
          
                    <filter-name>NtlmHttpFilter</filter-name>
          
                    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
          
                    <init-param>
          
                         <param-name>jcifs.http.domainController</param-name>
          
                         <param-value>ELMDC01</param-value>
          
                    </init-param>
          
                    <init-param>
          
                         <param-name>jcifs.smb.client.username</param-name>
          
                         <param-value>!adqueryuser</param-value>
          
                    </init-param>
          
                    <init-param>
          
                         <param-name>jcifs.smb.client.password</param-name>
          
                         <param-value>!@dqu3ryus3r</param-value>
          
                    </init-param>
          
                    <init-param>
          
                         <param-name>jcifs.smb.client.domain</param-name>
          
                         <param-value>archcapservices</param-value>
          
                    </init-param>
          
               </filter>
          
          
               <filter-mapping>
          
                    <filter-name>NtlmHttpFilter</filter-name>
          
                    <url-pattern>/*</url-pattern>
          
               </filter-mapping>
          
          
               <!--Servlet Filter that handles site authorization.-->
          
               <!-- 
          
                    <filter>
          
                    <filter-name>LoginSessionFilter</filter-name>
          
                    <filter-class>
          
                    com.archinsurance.web.filter.LoginSessionFilter
          
                    </filter-class>
          
                    <init-param>
          
                    <param-name>auth_page</param-name>
          
                    <param-value>logon.do</param-value>
          
                    </init-param>
          
                    <init-param>
          
                    <param-name>login_error</param-name>
          
                    <param-value>loginerror.jsp</param-value>
          
                    </init-param>
          
                    <init-param>
          
                    <param-name>auth_role_error</param-name>
          
                    <param-value>authnorole.jsp</param-value>
          
                    </init-param>
          
                    </filter>
          
                    
          
                    <filter-mapping>
          
                    <filter-name>LoginSessionFilter</filter-name>
          
                    <url-pattern>*.seam</url-pattern>
          
                    </filter-mapping>
          
               -->
          
          
          </web-app>
          
          





          <?xml version="1.0" encoding="UTF-8"?>
          
          <faces-config version="1.2"
          
                        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-facesconfig_1_2.xsd">
          
          
               <!-- Facelets support -->
          
            <!--   <application>
          
                  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
          
              </application>  -->
          
               
          
           <application>
          
                <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
          
             </application> 
          
          </faces-config>
          
          



          Anyone has any clues of what could be wrong ?

          • 3. Re: Seam 2 + richfaces + trinidad
            Guillaume Jeudy Master

            The stacktrace was included in rich faces forum post, here it is again:


            [org.jboss.seam.web.ExceptionFilter] handling uncaught exception
            
            javax.servlet.ServletException: No RenderingContext
            
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl
            
            .java:208)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.j
            
            ava:165)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:1
            
            38)
            
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
            
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            
            
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            
            
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            
                 at java.lang.Thread.run(Thread.java:595)
            
            Caused by: java.lang.IllegalStateException: No RenderingContext
            
                 at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:181)
            
                 at org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRen
            
            derer.java:56)
            
                 at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
            
                 at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:
            
            79)
            
                 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
            
                 at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
            
                 at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
            
                 at org.ajax4jsf.context.AjaxContextImpl.renderAjaxRegion(AjaxContextImpl.java:286)
            
                 at org.ajax4jsf.context.AjaxContextImpl$2.invoke(AjaxContextImpl.java:201)
            
                 at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
            
                 at org.ajax4jsf.context.AjaxContextImpl.invokeOnComponent(AjaxContextImpl.java:157)
            
                 at org.ajax4jsf.context.AjaxContextImpl.renderSubmittedAjaxRegion(AjaxContextImpl.java:215)
            
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:239)
            
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            
                 ... 45 more
            
            2008-02-12 17:38:48,806 ERROR [org.jboss.seam.web.ExceptionFilter] exception root cause
            
            java.lang.IllegalStateException: No RenderingContext
            
                 at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:181)
            
                 at org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRen
            
            derer.java:56)
            
                 at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
            
                 at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:
            
            79)
            
                 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
            
                 at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
            
                 at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
            
                 at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
            
                 at org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
            
                 at org.ajax4jsf.context.AjaxContextImpl.renderAjaxRegion(AjaxContextImpl.java:286)
            
                 at org.ajax4jsf.context.AjaxContextImpl$2.invoke(AjaxContextImpl.java:201)
            
                 at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
            
                 at org.ajax4jsf.context.AjaxContextImpl.invokeOnComponent(AjaxContextImpl.java:157)
            
                 at org.ajax4jsf.context.AjaxContextImpl.renderSubmittedAjaxRegion(AjaxContextImpl.java:215)
            
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:239)
            
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
            
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
            
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
            
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl
            
            .java:208)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.j
            
            ava:165)
            
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:1
            
            38)
            
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
            
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
            
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
            
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
            
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
            
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235
            
            )
            
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            
            
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            
            
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            
                 at java.lang.Thread.run(Thread.java:595)

            • 4. Re: Seam 2 + richfaces + trinidad
              Pete Muir Master

              Someone else reported it - but I couldn't reproduce. Please create a JIRA issue, upload a sample app so that we can look at it.