8 Replies Latest reply on Nov 14, 2012 8:35 AM by Ken Finnigan

    How to build the RichFaces4 Simple Example?

    Joe Padula Novice

      Hi,

      I would like to build the RichFaces4 Simple example that comes with PB 3.1.0.Final, but I am not familiar with git or maven. I've installed Maven 3.0.4, and downloaded a zip containing all the examples. If I want to build the RichFaces4 Simple example, could you show the maven command and what folder I should be in to run it?

       

      I tried from richfaces-simple folder, "mvn clean install" but get these errors:

       

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 9.712s

      [INFO] Finished at: Sun Nov 11 21:32:12 EST 2012

      [INFO] Final Memory: 5M/245M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project richfaces-simple: Could not resolve dependencies for project org.jboss.portlet

      bridge.examples:richfaces-simple:war:3.2.0.Final-SNAPSHOT: Could not find artifact org.jboss.portletbridge:richfaces4-de

      pchain:pom:3.2.0.Final-SNAPSHOT -> [Help 1]

      [ERROR]

       

      Appreciate your help.

      Thanks in advance.

      Joe

        • 1. Re: How to build the RichFaces4 Simple Example?
          Ján Jamrich Newbie

          Hi Joseph,

          your build failed due to missing dependency (artifactId=richfaces4-depchain, groupId=org.jboss.portletbridge), which is sibling maven project module.

           

          There are 2 possible way how to fix it:

          1. build whole portletbridge project, which builds all artifact the richfaces-simple example (better to say maven module) depends on into local maven repo. Note: for first build it is not necessary use "clean" goal since there is nothing to clean.

          2. add JBoss repository into your maven config to make maven able obtain required artifacts from remote JBoss repo [1]

           

           

          [1] https://community.jboss.org/wiki/MavenGettingStarted-Users

          1 of 1 people found this helpful
          • 2. Re: How to build the RichFaces4 Simple Example?
            Ken Finnigan Master

            Hi Joe,

             

            Everything should now be sync'd to Maven Central, so you shouldn't need to worry about option 2 from Jan.

             

            You can either build the whole of PortletBridge as Jan suggested, or you can just download the war file for 3.1.0.Final from JBoss Nexus here.

             

            Ken

            • 3. Re: How to build the RichFaces4 Simple Example?
              Joe Padula Novice

              OK, thanks to both of you. I will try to build it later on.

              But Ken, since you supplied location of war, that is quicker for me for now.

               

              I deployed to deploy folder, but I tried to install it in the GUI, GateIn-3.4.0.Final-jbossas6, and get UnsupportedOperationException. Do I need to deploy it to a GateIn running on JBossAS7?

               

              I noticed there is no JSF jar in your war. I have been bundling the JSF jar inside our war. It looks like this is trying to use the JSF that comes with JBossAS6, which I believe is JSF 2.0.3.

               

              2012-11-12 12:23:47,349 ERROR [org.gatein.pc.container.javax_portlet_faces_GenericFacesPortlet] (http-0.0.0.0-8180-6) The portlet threw an exception: java.lang.UnsupportedOperationException

                        at javax.faces.context.FacesContext.getAttributes(FacesContext.java:137) [:2.0.3-]

                        at com.sun.faces.application.ApplicationImpl.invokeViewListenersFor(ApplicationImpl.java:1953) [:2.0.3-]

                        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:287) [:2.0.3-]

                        at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:242) [:2.0.3-]

                        at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:666) [:2.0.3-]

                        at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:666) [:2.0.3-]

                        at org.jboss.portletbridge.PortletBridgeImpl.fireFacesSystemEvent(PortletBridgeImpl.java:352) [:3.1.0.Final]

                        at org.jboss.portletbridge.PortletBridgeImpl.releaseBridgeContext(PortletBridgeImpl.java:336) [:3.1.0.Final]

                        at org.jboss.portletbridge.PortletBridgeImpl.finalizeRequest(PortletBridgeImpl.java:331) [:3.1.0.Final]

                        at org.jboss.portletbridge.PortletBridgeImpl.doFacesRequest(PortletBridgeImpl.java:260) [:3.1.0.Final]

                        at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:516) [:3.1.0.Final]

                        at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:437) [:3.1.0.Final]

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

                        at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:411) [:3.1.0.Final]

                        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.GeneratedMethodAccessor682.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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.GeneratedMethodAccessor699.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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.GeneratedMethodAccessor723.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UIPageBody.run(UIPageBody.gtmpl:36)          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.page.UIPageBody.processRender(UIPageBody.java:162) [: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.GeneratedMethodAccessor699.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UIPortal.run(UIPortal.gtmpl:16)          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.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:41) [:3.4.0.Final]

                        at org.exoplatform.portal.webui.portal.UIPortalLifecycle.processRender(UIPortalLifecycle.java:30) [: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.GeneratedMethodAccessor723.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UISiteBody.run(UISiteBody.gtmpl:27)          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.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.GeneratedMethodAccessor699.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UIContainer.run(UIContainer.gtmpl:68)          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.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:113) [:3.4.0.Final]

                        at org.exoplatform.webui.core.UIComponentDecorator$UIComponentDecoratorLifecycle.processRender(UIComponentDecorator.java:104) [:3.4.0.Final]

                        at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:144) [: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.GeneratedMethodAccessor699.invoke(Unknown Source) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UIWorkingWorkspace.run(UIWorkingWorkspace.gtmpl:2)          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.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 org.exoplatform.webui.core.UIApplication.renderChildren(UIApplication.java:126) [:3.4.0.Final]

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_33]

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_33]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                        at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                        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 UIPortalApplicationChildren.run(UIPortalApplicationChildren.gtmpl:6)          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.portal.webui.workspace.UIPortalApplicationLifecycle.processRender(UIPortalApplicationLifecycle.java:142) [:3.4.0.Final]

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

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

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

                        at org.exoplatform.portal.webui.workspace.UIPortalApplication.processRender(UIPortalApplication.java:666) [: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:501) [: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:662) [:1.6.0_33]

              • 4. Re: How to build the RichFaces4 Simple Example?
                Ken Finnigan Master

                Joe,

                 

                I haven't tried it with AS6, but I suspect you're correct that you need AS7

                 

                Ken

                • 5. Re: How to build the RichFaces4 Simple Example?
                  Joe Padula Novice

                  Ken,

                  I got it to work in GateIn-3.4.0.Final_jbossas6, by adding these two jars to your war:

                   

                  javax.faces-2.1.13.jar

                  jboss-faces.jar

                   

                  And adding this to the web.xml:

                  <context-param>

                                <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

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

                  </context-param>

                   

                  I like the example, very nice, a lot of useful information in a short example. I wanted to get it to work, because I wanted to see how you have your xhtml is structured (with the include), and a working example of the JSF2 resources that we discussed previously.

                   

                  Thanks a lot.

                  Joe

                  • 6. Re: How to build the RichFaces4 Simple Example?
                    Ken Finnigan Master

                    Joe,

                     

                    No problem, glad it's helped clarify things.  I wanted to have a simpler RichFaces example as the showcase is more about all the components as opposed to a proper RichFaces portlet.

                     

                    Ken

                    • 7. Re: How to build the RichFaces4 Simple Example?
                      Joe Padula Novice

                      I was able to build the example with maven if I start at top level folder. I would like to try this with GateIn-3.5.0.CR2-jbossas7. (My original question should have been "How do I build and deploy" the example.)

                      (I would like to experiment with making changes to the example)

                       

                      1) what is the maven command to deploy it after I build it?

                       

                      2) Alternatively, I have maven installed in Eclipse and have imported the jbossportletbridge-master, is there a way to deploy it from there?

                       

                      3) I have your war, what is folder in JBossAS7 to copy to? Does it go in the standalone\deployments folder?

                       

                      Thanks again.

                      • 8. Re: How to build the RichFaces4 Simple Example?
                        Ken Finnigan Master

                        1) There is no Maven command to deploy the example within the Portlet Bridge source code.

                         

                        2) There may be a way to deploy it from Eclipse if you added GateIn-3.5.0.CR2-jbossas7 as a server in Eclipse, but it's not something I've done.  If you use JBossTools with Eclipse that would make it easier for achieving this.

                         

                        3) standalone/deployments is where the war needs to be placed for AS7.

                         

                        Ken