8 Replies Latest reply on Jan 22, 2013 5:52 AM by Chris Laprun

    WSRP and Remote Portlet Configuration

    Bipul Sinha Newbie

      Hi,

       

      I am new to both Gatein as well as Portlet development. I am facing some issue related to remote portlet configuration.

       

      I have downloaded GateIn-3.4.0.Final-jbossas6.  I am facing two issues:

      1. Remote portlet configuration using

        <container-runtime-option>

            <name>org.gatein.pc.remotable</name>

            <value>true</value>

         </container-runtime-option>

       

      The example I have used is Gatein-Jsp-Hellouser-3.5.0.Final. I have added container-runtime-option in portlet.xml. However, my portlet is still visible in 'Local' category rather than 'Remote'.  Am I missing something?

       

      2. Using wsrp admin gui

       

       

      After few hiccups I found that it doesn't have WSRP elements (please correct me if I am wrong). After referring to Reference Manual, I found that I need to add few jars and wars and it will start. The first challenge which I have faced is related to finding these jars and wars. Finally, I downloaded the latest final version of each one of them from Github.

       

      I have deployed  both wsrp-admin-gui-2.2.1.Final.war and wsrp-producer-2.2.1.Final.war. WSRP Configuration portlet got added and visible in portlet screen. However, it throws a null pointer exception when I switch to view mode. Here is full stack trace:

       

      19:16:18,429 INFO  [STDOUT] Creating a new session of the 'sample-ext'

       

       

      19:51:12,986 INFO  [org.apache.myfaces.shared_portlet.util.ExternalContextUtils] Portlet Environment Detected: 2.0

      19:51:13,121 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/wsrp-admin-gui-2.2.1.Final]] Exception thrown in doFacesRequest:render: javax.portlet.faces.BridgeException: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1048) [:3.0.0-alpha]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:948) [:3.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:580) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:532) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:246) [:2.0.0-alpha]

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

                at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:217) [:2.0.0-alpha]

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

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:77) [:3.4.0.Final]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123) [:2.3.2-GA]

                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82) [:2.2.0-Beta02]

                at sun.reflect.GeneratedMethodAccessor514.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135) [:2.2.0-Beta02]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]

                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84) [:2.2.0-Beta02]

                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58) [:2.2.0-Beta02]

                at org.gatein.wci.jboss.JB6ServletContainerContext.include(JB6ServletContainerContext.java:108) [:2.2.0-Beta02]

                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:271) [:2.2.0-Beta02]

                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:131) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:249) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:163) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:244) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1057) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:232) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:65) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortlet.processRender(UIPortlet.java:1115) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor513.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPage.run(UIPage.gtmpl:4)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:101) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor562.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPortalToolPanel.run(UIPortalToolPanel.gtmpl:9)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalToolPanel.processRender(UIPortalToolPanel.java:58) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIApplication.renderBlockToUpdate(UIApplication.java:157) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:700) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.processRequest(PortalRequestHandler.java:195) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:161) [:3.4.0.Final]

                at org.exoplatform.web.WebAppController.service(WebAppController.java:366) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:125) [:3.4.0.Final]

                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [:2.3.6-GA]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:89) [:3.4.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:55) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:110) [:3.4.0.Final]

                at org.exoplatform.sample.ext.web.SampleFilter.doFilter(SampleFilter.java:46) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:106) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:80) [:3.4.0.Final]

                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:79) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116) [:1.14.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) [:2.4.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69) [:2.3.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593) [:6.0.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

                at org.exoplatform.web.login.PortalClusteredSSOSupportValve.invoke(PortalClusteredSSOSupportValve.java:120) [:3.4.0.Final]

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416) [:6.0.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                at java.lang.Thread.run(Thread.java:722) [:1.7.0_09]

      Caused by: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241) [:3.0.0-alpha]

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156) [:3.0.0-alpha]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:115) [:2.0.3-]

                at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107) [:2.0.3-]

                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1041) [:3.0.0-alpha]

                ... 153 more

      Caused by: java.lang.NullPointerException

                at com.sun.faces.application.NavigationHandlerImpl.updateRenderTargets(NavigationHandlerImpl.java:236) [:2.0.3-]

                at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:193) [:2.0.3-]

                at org.gatein.wsrp.admin.ui.RedirectOnNoConsumerNavigationHandler.handleNavigation(RedirectOnNoConsumerNavigationHandler.java:72) [:]

                at org.gatein.wsrp.admin.ui.RedirectToErrorIfWSRPUnavailablePhaseListener.beforePhase(RedirectToErrorIfWSRPUnavailablePhaseListener.java:61) [:]

                at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224) [:2.0.3-]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95) [:2.0.3-]

                ... 156 more

       

       

      19:51:13,136 ERROR [org.gatein.pc.container.javax_portlet_faces_GenericFacesPortlet] The portlet threw an exception: javax.portlet.PortletException: doBridgeDispatch failed:  error from Bridge in executing the request

                at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:583) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:532) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:246) [:2.0.0-alpha]

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

                at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:217) [:2.0.0-alpha]

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

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:77) [:3.4.0.Final]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123) [:2.3.2-GA]

                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82) [:2.2.0-Beta02]

                at sun.reflect.GeneratedMethodAccessor514.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135) [:2.2.0-Beta02]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]

                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84) [:2.2.0-Beta02]

                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58) [:2.2.0-Beta02]

                at org.gatein.wci.jboss.JB6ServletContainerContext.include(JB6ServletContainerContext.java:108) [:2.2.0-Beta02]

                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:271) [:2.2.0-Beta02]

                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:131) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:249) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:163) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:244) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1057) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:232) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:65) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortlet.processRender(UIPortlet.java:1115) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor513.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPage.run(UIPage.gtmpl:4)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:101) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor562.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPortalToolPanel.run(UIPortalToolPanel.gtmpl:9)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalToolPanel.processRender(UIPortalToolPanel.java:58) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIApplication.renderBlockToUpdate(UIApplication.java:157) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:700) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.processRequest(PortalRequestHandler.java:195) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:161) [:3.4.0.Final]

                at org.exoplatform.web.WebAppController.service(WebAppController.java:366) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:125) [:3.4.0.Final]

                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [:2.3.6-GA]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:89) [:3.4.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:55) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:110) [:3.4.0.Final]

                at org.exoplatform.sample.ext.web.SampleFilter.doFilter(SampleFilter.java:46) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:106) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:80) [:3.4.0.Final]

                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:79) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116) [:1.14.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) [:2.4.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69) [:2.3.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593) [:6.0.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

                at org.exoplatform.web.login.PortalClusteredSSOSupportValve.invoke(PortalClusteredSSOSupportValve.java:120) [:3.4.0.Final]

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416) [:6.0.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                at java.lang.Thread.run(Thread.java:722) [:1.7.0_09]

      Caused by: javax.portlet.faces.BridgeException: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1048) [:3.0.0-alpha]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:948) [:3.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:580) [:2.0.0-alpha]

                ... 151 more

      Caused by: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241) [:3.0.0-alpha]

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156) [:3.0.0-alpha]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:115) [:2.0.3-]

                at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107) [:2.0.3-]

                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1041) [:3.0.0-alpha]

                ... 153 more

      Caused by: java.lang.NullPointerException

                at com.sun.faces.application.NavigationHandlerImpl.updateRenderTargets(NavigationHandlerImpl.java:236) [:2.0.3-]

                at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:193) [:2.0.3-]

                at org.gatein.wsrp.admin.ui.RedirectOnNoConsumerNavigationHandler.handleNavigation(RedirectOnNoConsumerNavigationHandler.java:72) [:]

                at org.gatein.wsrp.admin.ui.RedirectToErrorIfWSRPUnavailablePhaseListener.beforePhase(RedirectToErrorIfWSRPUnavailablePhaseListener.java:61) [:]

                at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224) [:2.0.3-]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95) [:2.0.3-]

                ... 156 more

       

       

      19:51:13,147 ERROR [portal:UIPortlet] Portlet render threw an exception: org.exoplatform.services.portletcontainer.PortletContainerException: doBridgeDispatch failed:  error from Bridge in executing the request

                at org.exoplatform.portal.webui.application.UIPortlet.generateRenderMarkup(UIPortlet.java:1213) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:233) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:65) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortlet.processRender(UIPortlet.java:1115) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:368) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIContainer.renderChildren(UIContainer.java:358) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor513.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPage.run(UIPage.gtmpl:4)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.portal.webui.page.UIPageLifecycle.processRender(UIPageLifecycle.java:44) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponentDecorator.renderChildren(UIComponentDecorator.java:101) [:3.4.0.Final]

                at sun.reflect.GeneratedMethodAccessor562.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

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

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

                at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) [:1.7.6]

                at UIPortalToolPanel.run(UIPortalToolPanel.gtmpl:9)          at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:111) [:3.4.0.Final]

                at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:119) [:3.4.0.Final]

                at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:125) [:3.4.0.Final]

                at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:83) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalToolPanel.processRender(UIPortalToolPanel.java:58) [:3.4.0.Final]

                at org.exoplatform.webui.core.UIApplication.renderBlockToUpdate(UIApplication.java:157) [:3.4.0.Final]

                at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:700) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.processRequest(PortalRequestHandler.java:195) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:161) [:3.4.0.Final]

                at org.exoplatform.web.WebAppController.service(WebAppController.java:366) [:3.4.0.Final]

                at org.exoplatform.portal.application.PortalController.onService(PortalController.java:125) [:3.4.0.Final]

                at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132) [:2.3.6-GA]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:89) [:3.4.0.Final]

                at org.exoplatform.web.login.RememberMeFilter.doFilter(RememberMeFilter.java:55) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:110) [:3.4.0.Final]

                at org.exoplatform.sample.ext.web.SampleFilter.doFilter(SampleFilter.java:46) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter$ExtensibleFilterChain.doFilter(ExtensibleFilter.java:106) [:3.4.0.Final]

                at org.exoplatform.web.filter.ExtensibleFilter.doFilter(ExtensibleFilter.java:80) [:3.4.0.Final]

                at org.exoplatform.web.filter.GenericFilter.doFilter(GenericFilter.java:79) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.CacheUserProfileFilter.doFilter(CacheUserProfileFilter.java:72) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.doFilter(ThreadLocalSessionProviderInitializedFilter.java:116) [:1.14.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurrentIdentityFilter.java:88) [:2.4.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.web.login.ClusteredSSOFilter.doFilter(ClusteredSSOFilter.java:73) [:3.4.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.exoplatform.container.web.PortalContainerFilter.doFilter(PortalContainerFilter.java:69) [:2.3.6-GA]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:593) [:6.0.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

                at org.exoplatform.web.login.PortalClusteredSSOSupportValve.invoke(PortalClusteredSSOSupportValve.java:120) [:3.4.0.Final]

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416) [:6.0.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                at java.lang.Thread.run(Thread.java:722) [:1.7.0_09]

      Caused by: javax.portlet.PortletException: doBridgeDispatch failed:  error from Bridge in executing the request

                at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:583) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:532) [:2.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:246) [:2.0.0-alpha]

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

                at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:217) [:2.0.0-alpha]

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

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:77) [:3.4.0.Final]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80) [:2.3.2-GA]

                at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123) [:2.3.2-GA]

                at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82) [:2.2.0-Beta02]

                at sun.reflect.GeneratedMethodAccessor514.invoke(Unknown Source) [:1.7.0_09]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_09]

                at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_09]

                at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135) [:2.2.0-Beta02]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]

                at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84) [:2.2.0-Beta02]

                at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58) [:2.2.0-Beta02]

                at org.gatein.wci.jboss.JB6ServletContainerContext.include(JB6ServletContainerContext.java:108) [:2.2.0-Beta02]

                at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:271) [:2.2.0-Beta02]

                at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:131) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:249) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:163) [:2.3.2-GA]

                at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:244) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165) [:2.3.2-GA]

                at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [:2.3.2-GA]

                at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1057) [:3.4.0.Final]

                at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:232) [:3.4.0.Final]

                ... 90 more

      Caused by: javax.portlet.faces.BridgeException: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1048) [:3.0.0-alpha]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:948) [:3.0.0-alpha]

                at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:580) [:2.0.0-alpha]

                ... 151 more

      Caused by: javax.faces.FacesException: java.lang.NullPointerException

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241) [:3.0.0-alpha]

                at org.apache.myfaces.shared_portlet.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156) [:3.0.0-alpha]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:115) [:2.0.3-]

                at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107) [:2.0.3-]

                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]

                at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRender(BridgeImpl.java:1041) [:3.0.0-alpha]

                ... 153 more

      Caused by: java.lang.NullPointerException

                at com.sun.faces.application.NavigationHandlerImpl.updateRenderTargets(NavigationHandlerImpl.java:236) [:2.0.3-]

                at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:193) [:2.0.3-]

                at org.gatein.wsrp.admin.ui.RedirectOnNoConsumerNavigationHandler.handleNavigation(RedirectOnNoConsumerNavigationHandler.java:72) [:]

                at org.gatein.wsrp.admin.ui.RedirectToErrorIfWSRPUnavailablePhaseListener.beforePhase(RedirectToErrorIfWSRPUnavailablePhaseListener.java:61) [:]

                at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224) [:2.0.3-]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95) [:2.0.3-]

                ... 156 more

       

      Kindly guide and help.

       

      Thanks & Regards,

       

      Bipul Sinha

        • 1. Re: WSRP and Remote Portlet Configuration
          Michal Vanco Newbie

          Hi Bipul,

           

          at first I would recommend you to start with latest version of GateIn 3.5 with AS7 integration (if you are not limited to older version of gatein/as). You can download it from http://www.jboss.org/gatein/downloads/gateinportal.html?dir=01%3D3.5.0.Final%3B

          Related documentation for this version is present at https://docs.jboss.org/author/display/GTNPORTAL35/Home and section for WSRP is at https://docs.jboss.org/author/display/GTNPORTAL35/Web+Services+for+Remote+Portlets+%28WSRP%29

           

          It seems like you are properly adding <container-runtime-option> in portlet.xml, but you have to do some additional steps to get the remote portlet. At first, you have to register a consumer (in admin UI or configuration file) where you want to use a remote portlet (which is deployed on producer - for testing purposes you can also use self wsrp producer). Then you can import portlet in application registry (and you will get remote portlet instead of local one).

          What is your expected scenario for usage of WSRP? - 2 instances of GateIn (one for producer, one for consumer) or other environment?

           

          Please provide as much information as possible so that we can direct you in expected way for your development.

           

          Best regards,

          Michal Vančo

          1 of 1 people found this helpful
          • 2. Re: WSRP and Remote Portlet Configuration
            Bipul Sinha Newbie

            Hi Michal,

             

            Thanks for your response. I have a restriction of using JBoss 6, hence can't upgrade to AS7.

             

            Requirement is to produce few functionalities as remote portlet. These portlets will be consumed by another application which is in Liferay.

             

            The problem is with version 3.4 I am facing issues in wsrp-admin-gui application. It throws exception when used in any page. Stack trace is posted in the parent post. Hence, I am stuck and unable to proceed.

             

            Kindly help.

             

            Thanks and Regards,

             

            Bipul Sinha

            • 3. Re: WSRP and Remote Portlet Configuration
              Boleslaw Dawidowicz Master

              Hi,

               

              WSRP with JBoss 6 is not a good combination. We are aware about some issues but simply didn't have time to fix all of them. It is better to just stick with AS5 or AS7 depending on which version you are using.

              • 4. Re: WSRP and Remote Portlet Configuration
                Bipul Sinha Newbie

                Hi Michal,

                 

                Now, I am using Gatein 3.5 with AS7 integration i.e. GateIn-3.5.0.Final-jbossas7.

                 

                I have created a portlet and want to convert/add remote producer feature. I am unable to understand how to add a new remote producer portlet. There is a button I can see to add consumers but not for producer.

                This remote portlet will be consumed on Liferay.

                I am missing something.

                 

                 

                 

                Regards,

                 

                Bipul Sinha

                • 5. Re: WSRP and Remote Portlet Configuration
                  Michal Vanco Newbie

                  Hi Bipul,

                   

                  if you have created portlet which you want to use as a remote portlet, you have to add following elelement to portlet.xml at your WAR archive:

                   

                  <container-runtime-option>

                     <name>org.gatein.pc.remotable</name>

                     <value>true</value>

                  </container-runtime-option>

                   

                  I still recommend you to go through the documentation I have added at previous comment - it includes all information about using WSRP in GateIn.

                  You can use self (1/2) producer to verify WSRP functionality. When you go WSRP admin portlet, simply configure self2 consumer with correct hostname & port.

                  After successful registration, you can import wsrp portlet at application registry and then add portlet at any page (as any local other portlet).

                   

                  Best regards,

                  Michal Vančo

                  • 6. Re: WSRP and Remote Portlet Configuration
                    Bipul Sinha Newbie

                    Hi,

                     

                    Finally it is resolved. I am adding the steps so that it might be helpful to someone.

                    Here are the steps:

                    1. Uncheck Access and Use strict WSRP compilance in Producer Configuration tab

                    2. Go to consumer tab

                    a.Select selfv2

                    b.Do refresh and Save

                    c. click export portlets button

                    d.check Include in export checkbox for respective portlet viz. HelloWorldPortlet

                    e. Click export button

                    f. Go to Group-Administration-Application Registry

                    g. Go To Category section and click on Import Portlet button

                    this will make HelloWorld as remote portlet. In category section it will be dispayed as Selfv2Producer

                    h. Go to Consumer tab again and import this in classis registry page. (Register Account)

                    i. Go to Application Registry and click on Category- Import Portlets button. HelloWorldPortlet is now added in Remote section of portlet.

                     

                    Few Important Point:

                    1) Gatein allows to configure a remote producer portlet from Consumer tab. This is not similar to any other portal server e.g. Liferay.

                    2) Just use the marup webservice URL at the consumer end. You will be able to see/add all remote portlets from your Gatein Server.

                    3) Consider Producer Registration properly, otherwise it might happen, that you will not be able to inject them in the consumer server.

                    4) Read the article shared by Michal in this thread. This will help in understanding the concept.

                     

                    Hope this helps.

                     

                    Regards,

                     

                    Bipul Sinha.

                    • 7. Re: WSRP and Remote Portlet Configuration
                      Michal Vanco Newbie

                      Hi Bipul,

                       

                      there are few steps in your list which you can easily skip: c., d., e., h., i.

                       

                      At the moment you have active consumer - you can see the remote portlet at Application Registry (Portal tab -> Remote), you can import as you have described (f., g.) -> category with portlet is created automatically.

                      This remote portlet can be easily added at any page at Site Editor -> Edit Page (select created category and  DnD portlet at page layout).

                       

                      What you have described is wsrp import/export feature which can be used as well - but it's usually used at other scenarios.

                       

                      Regards,

                      Michal Vančo

                      • 8. Re: WSRP and Remote Portlet Configuration
                        Chris Laprun Master

                        Your solution is not the proper way to access WSRP portlets. Please refer to the documentation, everything is explained there. If you have troubles understanding the necessary steps from the documentation, please let us know so that we can make it clearer and improve it for all our users.

                         

                        You do not need to export/import portlets to use WSRP in GateIn. You also do not need to uncheck anything in the default producer configuration to have GateIn to GateIn communication over WSRP.

                         

                        Registration works properly: if you have a producer that requires registration, when trying to access it from a GateIn consumer, the administration UI will display which registration properties are required and provide you fields to fill them as explained in https://docs.jboss.org/author/display/GTNPORTAL35/Consuming+remote+WSRP+portlets+in+GateIn. Also, WSRP is well integrated in GateIn to make it as transparent as possible. Therefore, once a consumer is configured to access remote portlets, you need to work with WSRP portlets in exactly the same way you would work with local ones in GateIn.

                         

                        The proper steps, as explained in the documentation above, are:

                        1. In the WSRP admin UI (WSRP will take you there on a default GateIn install), click on the Refresh link for the selfv2 consumer.

                        2. Go to Group / Administration / Application Registry, click on Import Applications (top right, this is the easiest way but there might be reasons not to do it this way, please see the documentation)

                        3. There is no step 3. You're done and you can now use your WSRP portlets in GateIn!

                         

                        Expecting things to work like in other portals and not reading the docs is a recipe for trouble...