myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjørn T Johansen <...@havleik.no>
Subject Re: SEVERE: No RenderingContext has been created.
Date Sat, 24 Jan 2009 11:59:57 GMT
Finally found out why.....

I had <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> in my faces-config.xml
and apparantely this
crashes with trinidad....


BTJ

On Sat, 24 Jan 2009 11:22:42 +0100 Bjørn T Johansen <btj@havleik.no> wrote:

> Well, see attachment...
> 
> BTJ
> 
> Quoting Richard Yee <richard.k.yee@gmail.com>:
> 
> > What is in your web.xml?
> >
> > -R
> >
> >
> > On Fri, Jan 23, 2009 at 6:47 PM, Bjørn T Johansen <btj@havleik.no> wrote:
> >> When I try to start my webapp, I only get this error if I config  
> >> mye faces-config.xml with this:
> >>
> >> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
> >>
> >>
> >> (removing that line, removes the exception...)
> >>
> >>
> >>
> >> Jan 24, 2009 3:41:09 AM  
> >> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit  
> >> createResponseWriter
> >> SEVERE: No RenderingContext has been created.
> >> Jan 24, 2009 3:41:09 AM com.sun.facelets.FaceletViewHandler  
> >> handleRenderException
> >> SEVERE: Error Rendering View[/secure/main.xhtml]
> >> javax.faces.FacesException: Exception while calling encodeBegin on  
> >> component : {Component-Path : [Class:  
> >> javax.faces.component.UIViewRoot,ViewId: /secure/main.xhtml][Class:  
> >> javax.faces.component.html.HtmlForm,Id: j_id2]}
> >>        at  
> >> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:599)
> >>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:245)
> >>        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
> >>        at  
> >> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
> >>        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:155)
> >>        at  
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>        at  
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at  
> >> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
> >>        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:238)
> >>        at  
> >> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
> >>        at  
> >> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
> >>        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.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
> >>        at  
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>        at  
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
> >>        at  
> >> org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
> >>        at  
> >> org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.webapp.DefaultLoginPageGeneratingFilter.doFilterHttp(DefaultLoginPageGeneratingFilter.java:86)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
> >>        at  
> >> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
> >>        at  
> >> org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
> >>        at  
> >> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
> >>        at  
> >> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
> >>        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:233)
> >>        at  
> >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>        at  
> >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >>        at  
> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>        at  
> >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>        at  
> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> >>        at  
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> >>        at  
> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>        at  
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>        at java.lang.Thread.run(Thread.java:619)
> >> Caused by: java.lang.IllegalStateException: No RenderingContext
> >>        at  
> >> org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:194)
> >>        at  
> >> org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:56)
> >>        at  
> >> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:596)
> >>        ... 66 more
> >>
> >>
> >> Any idea why this happends? I am using facelets 1.1.14, myfaces  
> >> 1.2.5, trinidad 1.2.10 and spring security 2.0.4..
> >> I have done some search and someone suggested filter problem but I  
> >> am not able to find a web.xml file that works...
> >>
> >>
> >> Regards,
> >>
> >> BTJ
> >>
> >> --
> >> -----------------------------------------------------------------------------------------------
> >> Bjørn T Johansen
> >>
> >> btj@havleik.no
> >> -----------------------------------------------------------------------------------------------
> >> Someone wrote:
> >> "I understand that if you play a Windows CD backwards you hear  
> >> strange Satanic messages"
> >> To which someone replied:
> >> "It's even worse than that; play it forwards and it installs Windows"
> >> -----------------------------------------------------------------------------------------------
> >>

Mime
View raw message