incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: portlet issues
Date Thu, 10 Aug 2006 06:31:46 GMT
Yes, instead of the MyFaces bridge. I am interested in how the "Apache
Portals" bridge behaves.

Good night,
Matthias

On 8/9/06, Nicolas Kalkhof <nkalkhof@web.de> wrote:
> matthias,
>
> iŽll give it a shot during weekend and keep you up to date. but i donŽt think itŽll
do any good since tobago had the same problems in another project using myfaces bridges.
>
> regards,
> nicolas
>
> > -----Ursprüngliche Nachricht-----
> > Von: adffaces-user@incubator.apache.org
> > Gesendet: 09.08.06 19:05:06
> > An: adffaces-user@incubator.apache.org
> > Betreff: Re: portlet issues
>
>
> > Nicolas,
> >
> > can you try [1] ?
> >
> > I was able to run "simple" MyFaces/Tomahawk portlets with
> > MyFAcesPortlet support and Apache Portals. I am now interested in how
> > that jsf_portlet bridge deals with your issue.
> >
> > Thanks!
> >
> > [1] http://portals.apache.org/bridges/multiproject/portals-bridges-jsf/index.html
> >
> > On 8/9/06, Nicolas Kalkhof <nkalkhof@web.de> wrote:
> > > hi simon,
> > >
> > > thanks for your reply! to answer your question: currently im using myfaces
1.1.5-snapshot, checked out 3 days ago. trinidad checked out yesterday and pluto is version
1.1, checked out approx 3 weeks ago.
> > >
> > > the crash happens when the facesRenderer() is called (see code below). note:
the portlet throws the exception after i pressed a button in the form. on initializatin the
portlet renders fine. if you need more information, please let me know.
> > >
> > > best regards,
> > > nicolas
> > >
> > >  protected void doView(RenderRequest request, RenderResponse response)
> > >   throws PortletException, IOException {
> > >
> > >     Boolean isPortletModeChanged = (Boolean)request.getAttribute("isPortletModeChanged");
> > >
> > >     if(isPortletModeChanged.booleanValue()) {
> > >       setPortletRequestFlag(request);
> > >       nonFacesRequest(request, response, viewPage);
> > >     } else {
> > >       facesRender(request, response);
> > >     }
> > >   }
> > >
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: adffaces-user@incubator.apache.org
> > > > Gesendet: 09.08.06 15:31:05
> > > > An: adffaces-user@incubator.apache.org
> > > > Betreff: Re: portlet issues
> > >
> > >
> > > > Hello,
> > > >
> > > > I could not find anything odd in FacesContextFactoryImpl. Normally,
> > > > ClassCastException's message specify the class that was being casted so
in
> > > > this case
> > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.
> > > > My guess would be that
> > > > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender attempts
to
> > > > cast CacheRenderKit to something else (maybe the internal implementation
> > > > of FacesContext itself)? I'll try to take a look at MyFacesGenericPortlet
> > > > source to make sure. Can you tell me what version you're using so I can
go
> > > > at the right line right away please?
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Simon Lessard
> > > > Fujitsu Consulting
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Nicolas Kalkhof <nkalkhof@web.de>
> > > > 2006-08-09 03:50
> > > > Please respond to adffaces-user
> > > >
> > > >         To:     adffaces-user@incubator.apache.org
> > > >         cc:
> > > >         Subject:        portlet issues
> > > >
> > > >
> > > > hi folks,
> > > >
> > > > since im new to this mailing list i have no clue if this issue was
> > > > discussed before. it seems that trinidad cannot handle faces - page
> > > > navigation in portlets.
> > > >
> > > > for example:
> > > > <tr:inputText styleClass=3D"darkblue=5Finput"
> > > > value=3D"#{logonBean.password}" secret=3D"true"/>
> > > > <tr:commandButton styleClass=3D"blueinputcontrol" text=3D"login"
> > > > actionListener=3D"#{logonBean.login}"/>
> > > >
> > > > fires an event declared in the backing bean:
> > > >
> > > > public String login(ActionEvent ae) {
> > > > .....
> > > > return "logonSuccess";
> > > > }
> > > >
> > > > my faces config implements the navigation as follows:
> > > >
> > > > <navigation-case>
> > > > <from-action>#{logonBean.login}</from-action>
> > > > <from-outcome>logonSuccess</from-outcome>
> > > > <to-view-id>/WEB-INF/jspx/logon/view.jspx</to-view-id>
> > > > </navigation-case>
> > > >
> > > > but after the event fires my portlet crashes with:
> > > >
> > > > Error rendering portlet.
> > > >
> > > > javax.portlet.PortletException:
> > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
> > > >                  at
> > > > org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
> > > >                  at
> > > > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:407)
> > > >                  at
> > > > net.portlets.logon.LogonPortlet.doView(LogonPortlet.java:88)
> > > >                  at
> > > > javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> > > >                  at
> > > > javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> > > >                  at
> > > > net.portlets.logon.LogonPortlet.render(LogonPortlet.java:71)
> > > >                  at
> > > > org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:204)
> > > >                  at
> > > > org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
> > > >                  at
> > > > org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
> > > >                  at
> > > > org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
> > > >                  at
> > > > org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:153)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(portlet_002dskin_jsp.java:95)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:70)
> > > >                  at
> > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.index_002dtheme_jsp._jspService(index_002dtheme_jsp.java:88)
> > > >                  at
> > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.processRequest(ApplicationDispatcher.java:463)
> > > >                  at
> > > > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> > > >                  at
> > > > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> > > >                  at
> > > > org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:127)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > >                  at
> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > >                  at
> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > > >                  at
> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > >                  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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > > >                  at
> > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > > >                  at java.lang.Thread.run(Thread.java:595)
> > > > Caused by: java.lang.ClassCastException:
> > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
> > > >                  at
> > > > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:387)
> > > >                  ... 61 more
> > > >
> > > > Nested Exception is java.lang.ClassCastException:
> > > > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit
> > > >                  at
> > > > org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:387)
> > > >                  at
> > > > net.portlets.logon.LogonPortlet.doView(LogonPortlet.java:88)
> > > >                  at
> > > > javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> > > >                  at
> > > > javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> > > >                  at
> > > > net.portlets.logon.LogonPortlet.render(LogonPortlet.java:71)
> > > >                  at
> > > > org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:204)
> > > >                  at
> > > > org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
> > > >                  at
> > > > org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
> > > >                  at
> > > > org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
> > > >                  at
> > > > org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:153)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(portlet_002dskin_jsp.java:95)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:70)
> > > >                  at
> > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
> > > >                  at
> > > > org.apache.jsp.WEB_002dINF.themes.index_002dtheme_jsp._jspService(index_002dtheme_jsp.java:88)
> > > >                  at
> > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> > > >                  at
> > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.processRequest(ApplicationDispatcher.java:463)
> > > >                  at
> > > > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
> > > >                  at
> > > > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
> > > >                  at
> > > > org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:127)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > > >                  at
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > >                  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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > >                  at
> > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > >                  at
> > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > > >                  at
> > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > > >                  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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > > >                  at
> > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > > >                  at java.lang.Thread.run(Thread.java:595)
> > > >
> > > >
> > > > any clues?
> > > >
> > > > regards,
> > > > nicolas
> > > > ______________________________________________________________
> > > > Verschicken Sie romantische, coole und witzige Bilder per SMS!
> > > > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> > > >
> > > >
> > > >
> > >
> > >
> > > _____________________________________________________________________
> > > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
>
>
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message