Jesse,

There is at least one remaining critical issue for portlets: TAPESTRY-525: Link 
components should not render during rewind. This is a limitation of the portlet 
API (there is no way to generate a link using the ActionResponse interface, 
only with the RenderResponse interface.)

What I'm proposing is to modify DefaultLinkRenderer and ButtonLinkRenderer to 
not render the link during rewind but only render its body.

I've attached a patch to the jira issue.

Also, I have a very quick and easy fix for TAPESTRY-785: the upload patch you 
already applied contained updates to [Servlet|Portlet]WebContext which include 
getRealPath() and a couple of others. So basically the issue can be marked as 
resolved/closed.

Thanks,

Raphael Jean
EntropySoft

> -----Original Message-----
> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> Sent: mardi 7 mars 2006 03:45
> To: Tapestry users
> Subject: Re: Issue using Oracle Portal and Tapestry JSR-168 support (stack
> included)
> 
> Thanks Raphael! Will apply this tomorrow.
> 
> (P.S, any other easy to patch fixes you have sitting around? ;) )
> 
> On 3/6/06, Raphaël Jean <[EMAIL PROTECTED]> wrote:
> >
> > Jan,
> >
> > I've never tried Oracle Portal but I've been able to run a Tapestry
> > portlet in WSRP4J, the Apache WSRP provider project. I had to fix a
> couple
> > of Tapestry issues regarding URL rewriting, which is critical in WSRP.
> >
> > I believe your problem is due to the fact that Tapestry wrongly encodes
> > portlet URLs. That is, it's calling RenderResponse.encodeURL() for URLs
> > created by RenderResponse.createRenderURL() or createActionURL().
> Another
> > problem is that Tapestry omits to encode URLs for assets or other
> resources
> > unless they require an active session. In WSRP, all resource URLs should
> be
> > encoded regardless of whether they are stateful or not.
> >
> > I created a jira issue for this problem: TAPESTRY-802
> >
> > Raphael Jean
> > EntropySoft
> >
> > > -----Original Message-----
> > > From: Jan Vissers [mailto:[EMAIL PROTECTED]
> > > Sent: lundi 6 mars 2006 09:33
> > > To: Tapestry users
> > > Subject: Re: Issue using Oracle Portal and Tapestry JSR-168 support
> > (stack
> > > included)
> > >
> > > Maybe to rephrase my question:
> > >
> > > Who has successfully created a Tapestry JSR-168 portlet and consumed
> > > this portlet in Oracle Portal 10.1.4 via a WSRP provider?
> > >
> > > -J.
> > >
> > > Jan Vissers wrote:
> > > > Hi,
> > > >
> > > > I've been trying to consume a Tapestry JSR-168 portlet in Oracle
> > > > Portal 10.1.4, which has support for WSRP. However a very simple
> > > > tapestry page is (already) failing. This page displays some
> > > > boilerplate text and a form component including one text input item.
> > > > Upon display the following stacktrace is shown:
> > > >
> > > > 06/03/03 14:42:58 webmodule: [id=3230371113264,1] EXCEPTION THROWN:
> > > > Uncaught exception
> > > > org.apache.hivemind.ApplicationRuntimeException: Invalid URL
> > > > "wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-
> mode=wsrp%3Aview&wsrp-
> > > windowState=wsrp%3Anormal&wsrp-secureURL=false/wsrp_rewrite"
> > > > [context:/WEB-INF/Home.page, line 5, column 59]
> > > >    at
> > > >
> > > org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java
> > :380)
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletRendererImpl.renderPage
> > (PortletRenderer
> > > Impl.java:70)
> > > >
> > > >    at
> > > >
> > >
> >
> $PortletRenderer_109c058b59f.renderPage($PortletRenderer_109c058b59f.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $PortletRenderer_109c058b59e.renderPage($PortletRenderer_109c058b59e.java)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletHomeService.service
> > (PortletHomeService.
> > > java:80)
> > > >
> > > >    at
> > > >
> $IEngineService_109c058b58a.service($IEngineService_109c058b58a.java)
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.EngineServiceInnerProxy.service
> > (EngineSe
> > > rviceInnerProxy.java:77)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.EngineServiceOuterProxy.service
> > (EngineSe
> > > rviceOuterProxy.java:66)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java
> > :248)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.InvokeEngineTerminator.service
> > (InvokeEng
> > > ineTerminator.java:60)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b559.service($WebRequestServicer_109c058b559.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b558.service($WebRequestServicer_109c058b558.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b557.service($WebRequestServicer_109c058b557.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b556.service($WebRequestServicer_109c058b556.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridg
> > > e.service(RenderRequestServicerToWebRequestServicerBridge.java:49)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b551.service($RenderRequestServicer_109c058b
> > > 551.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b550.service($RenderRequestServicer_109c058b
> > > 550.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b54b.service($RenderRequestServicer_109c058b
> > > 54b.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b54a.service($RenderRequestServicer_109c058b
> > > 54a.java)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.ApplicationPortlet.render(
> > ApplicationPortlet.j
> > > ava:161)
> > > >
> > > >    at oracle.webdb.wsrp.server.Server.getMarkup(Unknown Source)
> > > >    at
> > > >
> > > oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.invoke_getMarkup
> > (WSRP_v1_Mar
> > > kup_PortType_Tie.java:98)
> > > >
> > > >    at
> > > >
> > > oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.processingHook
> > (WSRP_v1_Marku
> > > p_PortType_Tie.java:495)
> > > >
> > > >    at
> > > >
> > > com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java
> > :230)
> > > >    at
> > > >
> > > com.sun.xml.rpc.server.http.ea.JAXRPCServletDelegate.doPost
> > (JAXRPCServletD
> > > elegate.java:153)
> > > >
> > > >    at
> > > > com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java
> > :69)
> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ResourceFilterChain.doFilter(ResourceFilterChain
> > > .java:65)
> > > >
> > > >    at oracle.webdb.wsrp.server.ContextFilter.doFilter(Unknown
> Source)
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ServletRequestDispatcher.invoke(ServletRequestDi
> > > spatcher.java:663)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ServletRequestDispatcher.forwardInternal(Servlet
> > > RequestDispatcher.java:330)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.HttpRequestHandler.processRequest(HttpRequestHan
> > > dler.java:830)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > >
> (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java
> > :2
> > > 85)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > >
> (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java
> > :1
> > > 26)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].util.ReleasableResourcePooledExecutor$MyWorker.run(Releasabl
> > > eResourcePooledExecutor.java:186)
> > > >
> > > >    at java.lang.Thread.run(Thread.java:534)
> > > > Caused by:
> oracle.webdb.wsrp.server.ContainerIllegalArgumentException:
> > > > Invalid URL
> > > > "wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-
> mode=wsrp%3Aview&wsrp-
> > > windowState=wsrp%3Anormal&wsrp-secureURL=false/wsrp_rewrite"
> > > >
> > > >    at oracle.webdb.wsrp.server.PortletResponseImpl.encodeURL(Unknown
> > > > Source)
> > > >    at oracle.webdb.wsrp.server.RenderResponseImpl.encodeURL(Unknown
> > > > Source)
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletWebResponse.encodeURL
> > (PortletWebRespons
> > > e.java:60)
> > > >
> > > >    at
> > $WebResponse_109c058b636.encodeURL($WebResponse_109c058b636.java)
> > > >    at
> > $WebResponse_109c058b51e.encodeURL($WebResponse_109c058b51e.java)
> > > >    at
> > > > org.apache.tapestry.engine.RequestCycle.encodeURL(RequestCycle.java
> > :207)
> > > >    at
> > > >
> $IRequestCycle_109c058b63f.encodeURL($IRequestCycle_109c058b63f.java)
> > > >    at
> > > >
> $IRequestCycle_109c058b53a.encodeURL($IRequestCycle_109c058b53a.java)
> > > >    at
> > > org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:68)
> > > >    at
> > > > org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:126)
> > > >    at
> > > >
> > > org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java
> > :490)
> > > >    at org.apache.tapestry.form.Form.renderComponent(Form.java:250)
> > > >    at
> > > > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
> > :617)
> > > >    at
> > > > org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java
> > :92)
> > > >    at
> > > > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
> > :617)
> > > >    at org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java
> > :275)
> > > >    at
> > > >
> > > org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java
> > :366)
> > > >    ... 36 more
> > > > 06/03/03 14:42:58 webmodule: [id=3230371113264,1] WARNING: Unable to
> > > > process client request: Invalid URL
> > > > "wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-
> mode=wsrp%3Aview&wsrp-
> > > windowState=wsrp%3Anormal&wsrp-secureURL=false/wsrp_rewrite"
> > > >
> > > > org.apache.hivemind.ApplicationRuntimeException: Invalid URL
> > > > "wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-
> mode=wsrp%3Aview&wsrp-
> > > windowState=wsrp%3Anormal&wsrp-secureURL=false/wsrp_rewrite"
> > > > [context:/WEB-INF/Home.page, line 5, column 59]
> > > >    at
> > > >
> > > org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java
> > :380)
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletRendererImpl.renderPage
> > (PortletRenderer
> > > Impl.java:70)
> > > >
> > > >    at
> > > >
> > >
> >
> $PortletRenderer_109c058b59f.renderPage($PortletRenderer_109c058b59f.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $PortletRenderer_109c058b59e.renderPage($PortletRenderer_109c058b59e.java)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletHomeService.service
> > (PortletHomeService.
> > > java:80)
> > > >
> > > >    at
> > > >
> $IEngineService_109c058b58a.service($IEngineService_109c058b58a.java)
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.EngineServiceInnerProxy.service
> > (EngineSe
> > > rviceInnerProxy.java:77)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.EngineServiceOuterProxy.service
> > (EngineSe
> > > rviceOuterProxy.java:66)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java
> > :248)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.services.impl.InvokeEngineTerminator.service
> > (InvokeEng
> > > ineTerminator.java:60)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b559.service($WebRequestServicer_109c058b559.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b558.service($WebRequestServicer_109c058b558.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b557.service($WebRequestServicer_109c058b557.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> $WebRequestServicer_109c058b556.service($WebRequestServicer_109c058b556.ja
> > > va)
> > > >
> > > >    at
> > > >
> > >
> >
> org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridg
> > > e.service(RenderRequestServicerToWebRequestServicerBridge.java:49)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b551.service($RenderRequestServicer_109c058b
> > > 551.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b550.service($RenderRequestServicer_109c058b
> > > 550.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b54b.service($RenderRequestServicer_109c058b
> > > 54b.java)
> > > >
> > > >    at
> > > >
> > >
> >
> $RenderRequestServicer_109c058b54a.service($RenderRequestServicer_109c058b
> > > 54a.java)
> > > >
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.ApplicationPortlet.render(
> > ApplicationPortlet.j
> > > ava:161)
> > > >
> > > >    at oracle.webdb.wsrp.server.Server.getMarkup(Unknown Source)
> > > >    at
> > > >
> > > oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.invoke_getMarkup
> > (WSRP_v1_Mar
> > > kup_PortType_Tie.java:98)
> > > >
> > > >    at
> > > >
> > > oracle.webdb.wsrp.WSRP_v1_Markup_PortType_Tie.processingHook
> > (WSRP_v1_Marku
> > > p_PortType_Tie.java:495)
> > > >
> > > >    at
> > > >
> > > com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java
> > :230)
> > > >    at
> > > >
> > > com.sun.xml.rpc.server.http.ea.JAXRPCServletDelegate.doPost
> > (JAXRPCServletD
> > > elegate.java:153)
> > > >
> > > >    at
> > > > com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java
> > :69)
> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ResourceFilterChain.doFilter(ResourceFilterChain
> > > .java:65)
> > > >
> > > >    at oracle.webdb.wsrp.server.ContextFilter.doFilter(Unknown
> Source)
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ServletRequestDispatcher.invoke(ServletRequestDi
> > > spatcher.java:663)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.ServletRequestDispatcher.forwardInternal(Servlet
> > > RequestDispatcher.java:330)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].server.http.HttpRequestHandler.processRequest(HttpRequestHan
> > > dler.java:830)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > >
> (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java
> > :2
> > > 85)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > >
> (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java
> > :1
> > > 26)
> > > >
> > > >    at com.evermind[Oracle Application Server Containers for J2EE 10g
> > > >
> > > (10.1.2.0.2
> > )].util.ReleasableResourcePooledExecutor$MyWorker.run(Releasabl
> > > eResourcePooledExecutor.java:186)
> > > >
> > > >    at java.lang.Thread.run(Thread.java:534)
> > > > Caused by:
> oracle.webdb.wsrp.server.ContainerIllegalArgumentException:
> > > > Invalid URL
> > > > "wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-
> mode=wsrp%3Aview&wsrp-
> > > windowState=wsrp%3Anormal&wsrp-secureURL=false/wsrp_rewrite"
> > > >
> > > >    at oracle.webdb.wsrp.server.PortletResponseImpl.encodeURL(Unknown
> > > > Source)
> > > >    at oracle.webdb.wsrp.server.RenderResponseImpl.encodeURL(Unknown
> > > > Source)
> > > >    at
> > > >
> > > org.apache.tapestry.portlet.PortletWebResponse.encodeURL
> > (PortletWebRespons
> > > e.java:60)
> > > >
> > > >    at
> > $WebResponse_109c058b636.encodeURL($WebResponse_109c058b636.java)
> > > >    at
> > $WebResponse_109c058b51e.encodeURL($WebResponse_109c058b51e.java)
> > > >    at
> > > > org.apache.tapestry.engine.RequestCycle.encodeURL(RequestCycle.java
> > :207)
> > > >    at
> > > >
> $IRequestCycle_109c058b63f.encodeURL($IRequestCycle_109c058b63f.java)
> > > >    at
> > > >
> $IRequestCycle_109c058b53a.encodeURL($IRequestCycle_109c058b53a.java)
> > > >    at
> > > org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:68)
> > > >    at
> > > > org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:126)
> > > >    at
> > > >
> > > org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java
> > :490)
> > > >    at org.apache.tapestry.form.Form.renderComponent(Form.java:250)
> > > >    at
> > > > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
> > :617)
> > > >    at
> > > > org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java
> > :92)
> > > >    at
> > > > org.apache.tapestry.AbstractComponent.render(AbstractComponent.java
> > :617)
> > > >    at org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java
> > :275)
> > > >    at
> > > >
> > > org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java
> > :366)
> > > >    ... 36 more
> > > >
> > > >
> > > >
> > > > Any of you got any clue whether this is an issue of Tapestry, or of
> > > > Oracle Portal. I'm guessing it is Oracle Portal messing things up,
> as
> > > > it is Oracle which gets mentioned in the stacktrace as cause.
> > > > Thanks.
> > > >
> > >
> > > --
> > > Cumquat Information Technology
> > > De Dreef 19
> > > 3706 BR Zeist
> > > T +31 (0)30 - 6940490
> > > F +31 (0)10 - 6940499
> > > http://www.cumquat.nl
> > >
> > > [EMAIL PROTECTED]
> > > M +31 6 51 169 556
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to