11 Replies Latest reply on Sep 28, 2007 3:36 PM by Bharat

    AjaxFacesPortlet - ViewId must start with '/'

    John Gilbert Apprentice

      for better or for worse i am trying to use the ajax4jsf truck 1.1.1-SNAPSHOT so that i can use AjaxFacesPortlet. however i am getting the following exception:

      java.lang.IllegalArgumentException: ViewId must start with '/' (viewId = .xhtml/CreateFundingRequest/Welcome.xhtml)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getViewIdPath(JspViewHandlerImpl.java:286)
       at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getActionURL(JspViewHandlerImpl.java:158)
       at org.ajax4jsf.framework.ViewHandlerWrapper.getActionURL(ViewHandlerWrapper.java:92)
       at org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:48)
       at com.sun.facelets.FaceletViewHandler.getActionURL(FaceletViewHandler.java:722)
       at com.sun.facelets.FaceletViewHandler.handleFaceletNotFound(FaceletViewHandler.java:629)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:585)
       at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:232)
       at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
       at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
      


      i do have the default-view configured with a slash but somewhere a dot gets in there.

      any ideas why this is happening?

      also are there any example configurations? so far i am just taking a guess at how to configure it.

      i am using seam and jboss portal.

      THANKS!


        • 1. Re: AjaxFacesPortlet - ViewId must start with '/'
          John Gilbert Apprentice

          here is the right stack trace. i get the same thing with the a4j and myfaces generic portlet.

          Caused by: java.lang.IllegalArgumentException: ViewId must start with '/' (viewId = xhtml/OperatingStatementSearch.xhtml)
           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getViewIdPath(JspViewHandlerImpl.java:286)
           at org.apache.myfaces.application.jsp.JspViewHandlerImpl.getActionURL(JspViewHandlerImpl.java:158)
           at org.ajax4jsf.framework.ViewHandlerWrapper.getActionURL(ViewHandlerWrapper.java:92)
           at org.jboss.seam.jsf.SeamViewHandler.getActionURL(SeamViewHandler.java:48)
           at com.sun.facelets.FaceletViewHandler.getActionURL(FaceletViewHandler.java:722)
           at org.ajax4jsf.framework.ViewHandlerWrapper.getActionURL(ViewHandlerWrapper.java:92)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlRenderer.getActionUrl(HtmlRenderer.java:75)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:59)
           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
           at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
           at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:232)
           at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
           at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:231)
           at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:150)


          • 2. Re: AjaxFacesPortlet - ViewId must start with '/'
            Sergey Smirnov Master

            You are running before the locomotive :-) . This part of code is not in SVN yet. Today or tomorrow we add building the a4j-portlet.jar to the main build script (to the pom, actually).
            The portlets' example will be also added to the list of available examples.

            • 3. Re: AjaxFacesPortlet - ViewId must start with '/'
              john grange Newbie

              Sergey,

              Sounds as though you're nearly there - that's great news for me :-)

              Is it sensible for me to download the snapshots yet to start trying this out on oracle?

              Awaiting your advice.

              John Grange

              • 4. Re: AjaxFacesPortlet - ViewId must start with '/'
                Sergey Smirnov Master

                we use only JBoss Portal in our test environment right now. You can try it with oracle if you want. The feedback will be welcome because JBoss Portal is not only the portal implementation we are going to support in the future.

                • 5. Re: AjaxFacesPortlet - ViewId must start with '/'
                  Michel Bieske Newbie

                  I've just downloaded the anonym snapshot and build it. It doesn't seems to me that the a4j-portlet.jar and the portelt sample building is added to the main pom build script. Is it?

                  Awaiting your answer;

                  best regards

                  • 6. Re: AjaxFacesPortlet - ViewId must start with '/'
                    John Gilbert Apprentice

                    OK. I may still be ahead of the locomotive but i have made some progress. :-)

                    I deployed the sample portlet and I have modified the configuration of my simple portlet to use the AjaxFacesPortlet.

                    Since my portlet is a seam portlet i just had to comment out the StartupServletContextListener so that i wouldn't get the classic seam "No active event context" error message.

                    However, once i started adding ajax components to my view i started getting the exception below.

                    Caused by: java.lang.ClassCastException: org.jboss.portlet.JBossRenderResponse


                    Adding back the StartupServletContextListener did make a difference and adding org.ajax4jsf.portlet.context.FacesContextFactoryImpl to my faces-congif.xml didn't either.

                    Any thoughts or suggestions?



                    javax.portlet.PortletException: Error processing execute lifecycle
                     at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:179)
                     at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
                     at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
                     at org.apache.portals.bridges.portletfilter.PortletFilterChain.renderFilter(PortletFilterChain.java:121)
                     at org.jboss.seam.web.MultipartPortletFilter.renderFilter(MultipartPortletFilter.java:64)
                     at org.apache.portals.bridges.portletfilter.PortletFilterChain.renderFilter(PortletFilterChain.java:114)
                     at org.apache.portals.bridges.portletfilter.FilterPortlet.render(FilterPortlet.java:141)
                     at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:501)
                     at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:423)
                     at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:81)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                     at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:51)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:51)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:78)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:46)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:148)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
                     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
                     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
                     at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:95)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:70)
                     at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:76)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:59)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:185)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy102.invoke(Unknown Source)
                     at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:228)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy106.invoke(Unknown Source)
                     at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:148)
                     at org.jboss.portal.portlet.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:149)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy67.invoke(Unknown Source)
                     at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$1.invoke(PersistentInstanceContainer.java:123)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.portlet.management.PortletContainerManagementInterceptorImpl.invoke(PortletContainerManagementInterceptorImpl.java:58)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:112)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:134)
                     at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.org$jboss$portal$core$impl$model$instance$PersistentInstanceContainer$invoke$aop(PersistentInstanceContainer.java:453)
                     at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$invoke_N8654503705355129869.invokeNext(PersistentInstanceContainer$invoke_N8654503705355129869.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                     at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer$invoke_N8654503705355129869.invokeNext(PersistentInstanceContainer$invoke_N8654503705355129869.java)
                     at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.invoke(PersistentInstanceContainer.java)
                     at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:234)
                     at org.jboss.portal.core.impl.model.portal.content.PortletContentRenderer.renderWindow(PortletContentRenderer.java:172)
                     at org.jboss.portal.core.model.portal.command.RenderWindowCommand.execute(RenderWindowCommand.java:91)
                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:186)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:45)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:96)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:68)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:54)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:86)
                     at org.jboss.portal.core.model.portal.command.RenderPageCommand.execute(RenderPageCommand.java:224)
                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:186)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:45)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:96)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:68)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:54)
                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:86)
                     at org.jboss.portal.core.controller.classic.ClassicController.handle(ClassicController.java:88)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                     at $Proxy323.handle(Unknown Source)
                     at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                     at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:46)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:67)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:108)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:188)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:85)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                     at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                     at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:381)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                     at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                     at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                     at java.lang.Thread.run(Thread.java:595)
                    Caused by: java.lang.ClassCastException: org.jboss.portlet.JBossRenderResponse
                     at org.ajax4jsf.framework.resource.FacesResourceContext.<init>(FacesResourceContext.java:54)
                     at org.ajax4jsf.framework.resource.TemplateCSSRenderer.getData(TemplateCSSRenderer.java:118)
                     at org.ajax4jsf.framework.resource.InternetResourceBase.getDataToStore(InternetResourceBase.java:229)
                     at org.ajax4jsf.framework.resource.InternetResourceBase.getUri(InternetResourceBase.java:211)
                     at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:62)
                     at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
                     at org.ajax4jsf.framework.resource.BaseResourceRenderer.encode(BaseResourceRenderer.java:45)
                     at org.ajax4jsf.framework.resource.InternetResourceBase.encode(InternetResourceBase.java:306)
                     at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.encodeResourcesArray(HeaderResourcesRendererBase.java:131)
                     at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.preEncodeBegin(HeaderResourcesRendererBase.java:118)
                     at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin(RendererBase.java:98)
                     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
                     at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
                     at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                     at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
                     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:540)
                     at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                     at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:232)
                     at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
                     at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                     at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:232)
                     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
                     at org.ajax4jsf.portlet.AjaxFacesPortlet.render(AjaxFacesPortlet.java:259)
                     at org.ajax4jsf.portlet.AjaxFacesPortlet.doView(AjaxFacesPortlet.java:169)
                     ... 245 more
                    
                    


                    • 7. Re: AjaxFacesPortlet - ViewId must start with '/'
                      Igor Shabalov Apprentice

                      I need just to remind that portlet support are still in active development phase and not yet even declared as a preview release. Guys, please, just be patient and wait a week or so till we will finish active development.

                      • 8. Re: AjaxFacesPortlet - ViewId must start with '/'
                        John Gilbert Apprentice

                        fair enough! just trying to lend a hand at testing. let me know if there is something specific i can test with regard to use with seam.

                        currently i can get some richfaces components to work in client mode.

                        • 9. Re: AjaxFacesPortlet - ViewId must start with '/'
                          John Gilbert Apprentice

                          since there appears to be a bunch of new stuff checked in i am giving this another try. here is the exception i am getting at the moment.

                          for some reason it is returning ServletContextImpl. but the PortletViewHandler is setting up the namespace parameter on the portletUrl

                          portletURL.setParameter(AbstractExternalContext.NAMESPACE_PARAMETER, renderResponse.getNamespace());
                          



                          Caused by: javax.faces.FacesException: AJAX call to portlet without namespace parameter
                           at org.ajax4jsf.portlet.context.ServletContextImpl.getNamespace(ServletContextImpl.java:73)
                           at org.ajax4jsf.portlet.context.ServletContextImpl.getSessionPrefix(ServletContextImpl.java:193)
                           at org.ajax4jsf.portlet.context.ServletContextImpl.getSessionAttribute(ServletContextImpl.java:219)
                           at org.ajax4jsf.portlet.context.AbstractExternalContext$8.getAttribute(AbstractExternalContext.java:458)
                           at org.ajax4jsf.portlet.context.ContextAttributesMap.get(ContextAttributesMap.java:18)
                           at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:278)
                           at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:47)
                           at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
                           at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574)
                           at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
                           at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
                           at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
                           ... 49 more


                          • 10. Re: AjaxFacesPortlet - ViewId must start with '/'
                            John Gilbert Apprentice

                            I changed ServletContextImpl getSessionPrefix() and getNamespace() to return an empty string instead of throwing an exception and everything appears to be working.

                            • 11. Re: AjaxFacesPortlet - ViewId must start with '/'
                              Bharat Newbie

                              please try changing the xhtml to jsf folder and run. I too had the same problem, but when i changed to jsf or any other folder it worked. Somehow facesservlet/ajaxservlet doesn't like xhtml as folder name. try changing the folder name and see...