12 Replies Latest reply: May 22, 2012 3:55 PM by Ken Finnigan RSS

Portletbridge 3 and Richfaces JSF2

Marc Schmucki Newbie

Hello everybody

 

I'm trying to setup a portlet with Portlet-bridge 3.0.0.Beta2, Richfaces3.3.3.FinalForJSF2 with JSF2.1.7 in GateIn - Portal. But until now with nooo luck!

Has somebody the same project settings and got it work??? Or has someone an idea how to deal with that? Actually I don't want to change to other Frameworks...

 

Thanks!

Marc

  • 1. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    Marc,

     

    What's the error your getting?

     

    What server are you running on? Is it JBoss, Tomcat, etc?

     

    Also, depending on what the error is, it could be caused by the mixing of JSF2, RF3 and portlets. The version of RF3 that uses JSF2 does not implement all the pieces of JSF2, so there may be problems running in a portlet environment because of it.

  • 2. Re: Portletbridge 3 and Richfaces JSF2
    Marc Schmucki Newbie

    We are using tomcat. The problem is, that depeding on which configuration we make in web.xml and faces-config.xml, we are getting a lot of different exceptions. For me it would only would be helpful, if someone had already really a running version of that components and could give me a hint, how I can solve that

  • 3. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    I'm more than happy to assist in getting it working for you in any way I can, but I'm not able to do that without information about the errors you're receiving.

     

    Could you post your faces-config.xml and web.xml along with any errors you are seeing?

  • 4. Re: Portletbridge 3 and Richfaces JSF2
    Marc Schmucki Newbie

    Ok, here are my settings:

     

    GateIn 3.1.0-GA on tomcat

    JSF2.1.7

    Richfaces3.3.3.Final (with of courese 3.3.3.FinalJSF2Impl.)

    portletbridge 3.0.0.Beta3

    portlet-api 2.0 and 1.1.15.B1 (is used because of the Richfaces3 as shown in several posts in this forum)

     

     

    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">

    <display-name>MyPortlet</display-name>

     

    <context-param>

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

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

        </context-param>

       

        <context-param>

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

           <param-value>com.sun.facelets.FaceletViewHandler</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>/faces/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

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

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

    </servlet-mapping>

    </web-app>

     

     

    faces-config.xml:

    ------------------------------------

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

    <faces-config version="2.0"

        xmlns="http://java.sun.com/xml/ns/javaee"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xmlns:bridge="http://jboss.org/xml/ns/bridge/bridge-extension"

        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

        http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">

     

        <application>

            <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>

        </application>

     

    </faces-config>

     

    => this ends in

    javax.faces.FacesException: Unzulässiger Versuch, ViewHandler festzulegen, nachdem eine Antwort erstellt wurde.

        at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:142)

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

        at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)

        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

        at org.jboss.portletbridge.bridge.controller.Jsf20ControllerImpl.renderPortletBody(Jsf20ControllerImpl.java:264)

        at org.jboss.portletbridge.PortletBridgeImpl.doFacesRequest(PortletBridgeImpl.java:255)

        at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:515)

        at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:429)

        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)

        at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:403)

        at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)

        at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569)

        at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)

        at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)

        at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506)

        at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)

        at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)

        at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

        at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84)

        at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58)

        at org.gatein.wci.tomcat.TC6ServletContainerContext.include(TC6ServletContainerContext.java:87)

        at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:198)

        at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)

        at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:117)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:231)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)

        at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:87)

        at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:152)

        at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:177)

        at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:903)

        at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:206)

        at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:62)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIPage.run(UIPage.gtmpl:8)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIPageBody.run(UIPageBody.gtmpl:35)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.portal.webui.page.UIPageBody.processRender(UIPageBody.java:171)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIPortal.run(UIPortal.gtmpl:18)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41)

        at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:93)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UISiteBody.run(UISiteBody.gtmpl:31)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIContainer.run(UIContainer.gtmpl:49)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:105)

        at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:96)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:12)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368)

        at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358)

        at org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:104)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)

        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)

        at UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:25)

        at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:95)

        at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)

        at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:116)

        at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)

        at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:133)

        at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:95)

        at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:37)

        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)

        at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:572)

        at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:111)

        at org.exoplatform.web.WebAppController.service(WebAppController.java:143)

        at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)

        at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:76)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:112)

        at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:84)

        at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:66)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

        at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73)

        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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

        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:293)

        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

        at java.lang.Thread.run(Thread.java:619)

    Caused by: java.lang.IllegalStateException: Unzulässiger Versuch, ViewHandler festzulegen, nachdem eine Antwort erstellt wurde.

        at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:564)

        at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)

        at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)

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

        ... 234 more

     

     

    Do you have any idea how that could be fixed? :-S

     

    Thanks in advance!

  • 5. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    I'm pretty sure that the problem is due to your web.xml containing the org.ajax4jsf.VIEW_HANDLERS context-param element.

     

    If that is removed, it shouldn't have a ViewHandler problem.

  • 6. Re: Portletbridge 3 and Richfaces JSF2
    Marc Schmucki Newbie

    Hm, I'm still getting the same error =(

  • 7. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    Found some info that may be related to your problem.

     

    Can you try adding the org.ajaxjsf.VIEW_HANDLERS context-param back into the web.xml, but set the value to org.ajax4jsf.application.AjaxViewHandler instead?

     

    It may be that the problem is because the RF view handler wasn't configured, as it was originally set to use the Sun Facelets handler instead.

     

    Ken

  • 8. Re: Portletbridge 3 and Richfaces JSF2
    Marc Schmucki Newbie

    Still the same error

     

    aused by: java.lang.IllegalStateException: Unzulässiger Versuch, ViewHandler festzulegen, nachdem eine Antwort erstellt wurde.

        at com.sun.faces.application.ApplicationImpl.setViewHandler(ApplicationImpl.java:564)

        at org.ajax4jsf.event.InitPhaseListener.beforePhase(InitPhaseListener.java:92)

        at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)

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

        ... 215 more

  • 9. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    Do you have a simple war that you could attach to the thread that replicates the problem?

  • 11. Re: Portletbridge 3 and Richfaces JSF2
    Marc Schmucki Newbie

    Is it as well not working for you right?

  • 12. Re: Portletbridge 3 and Richfaces JSF2
    Ken Finnigan Master

    Marc,

     

    I've discovered what the problem is, but unfortunately I don't have a solution.

     

    Basically the first render of the portlet fails before the RESTORE_VIEW phase of JSF. Before executing the phase, JSF calls beforePhase on all the registered listeners, which is where the problem lies. {code}ELResolverInitPhaseListener{code} in JSF calls {code}associate.setRequestServiced();{code} in {code}beforePhase(){code} of the listener which sets a boolean on the associate to true.  A consequence of that is that the {code}InitPhaseListener{code} in RichFaces then has its beforePhase() called where it calls {code}application.setViewHandler(ajaxViewHandler);{code}.  Inside {code}setViewHandler(){code} it checks {code}associate.hasRequestBeenServiced(){code}, which returns true because of the JSF phase listener, and then the error you're seeing is thrown.

     

    From looking at the changes to {code}ELResolverInitPhaseListener{code} through the JSF 2.x versions, it looks like if you use v2.0.3 then you won't hit this problem.

     

    Ken