tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andriy <Andriy.Tsykhol...@gmail.com>
Subject Re: Portlet in tapestry
Date Fri, 02 Sep 2005 10:03:28 GMT
Ryan Wynn <rwynn <at> us.ibm.com> writes:

> 
> Andriy,
> 
> I was successful making links and forms work inside a portlet.  What 
> portlet container are you using and what are the exceptions?
> 
> Ryan
> 
> Andriy <Andriy.Tsykholyas <at> gmail.com> 
> Sent by: news <news <at> sea.gmane.org>
> 09/01/2005 10:53 AM
> Please respond to
> "Tapestry users"
> 
> To
> tapestry-user <at> jakarta.apache.org
> cc
> 
> Subject
> Re: Portlet in tapestry
> 
> Hello Ryan!
> 
> I also managed to make HelloWorld tutorial run as portlet. But its 
> functionality
> not very useful.
> Did you tried to add some links or forms to your portlet?
> I've tried but I've failed :(
> Inserts work fine but links or forms throw exceptions...
> 
> Andriy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help <at> jakarta.apache.org
> 
> 

Ryan,

I've tried my portlet on Liferay portal and uPortal.

Liferay deployed portlet with no problem. Portal's admin portlet shows my
portlet as active. But when I'm trying to add it to any page - nothing happens.
No errors, no exceptions, nothing. Page is not reloaded.

With uPortal sitiation is different. During deployment it shows such output:
----------------------------
...
     [java] ApplicationServlet [INFO] Initialized application servlet 'app':
2,072 millis to create HiveMind Registry, 4,752 millis overall.
     [java] Sep 2, 2005 12:23:53 PM
org.apache.catalina.core.StandardHostDeployer install
     [java] INFO: Installing web application at context path /tapestry2 
from URL file:/home/xats/programs/uPortal_rel-2-4-2-quick-start/
Tomcat_5-0-28/webapps/tapestry2
     [java] Sep 2, 2005 12:23:53 PM org.apache.catalina.core.StandardContext
listenerStart
     [java] SEVERE: Skipped installing application listeners due to previous
error(s)
     [java] Sep 2, 2005 12:23:53 PM org.apache.catalina.core.StandardContext start
     [java] SEVERE: Error listenerStart
     [java] Sep 2, 2005 12:23:53 PM org.apache.catalina.core.StandardContext start
     [java] SEVERE: Context startup failed due to previous errors
....
--------------------------

It looks like there is some problem with listener.
When I'm opening appropriate page in browser, I'm gettin such exception:

------------------------------
org.apache.hivemind.ApplicationRuntimeException
only absolute URLs or full path URIs are allowed
component	$View_0@1cc3baa[View] 	
location	context:/WEB-INF/View.page, line 6, column 34

1	<?xml version="1.0" encoding="UTF-8"?>	
2	<!DOCTYPE page-specification PUBLIC	
3	"-//Apache Software Foundation//Tapestry Specification 4.0//EN"	
4	"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">	
5		
6	<page-specification class="View">	
7	</page-specification>	
java.lang.IllegalArgumentException
only absolute URLs or full path URIs are allowed
org.apache.pluto.core.impl.PortletResponseImpl.encodeURL(
PortletResponseImpl.java:120)
org.apache.tapestry.portlet.PortletWebResponse.encodeURL(
PortletWebResponse.java:60)
$WebResponse_1061626115a.encodeURL($WebResponse_1061626115a.java)
$WebResponse_1061626105a.encodeURL($WebResponse_1061626105a.java)
org.apache.tapestry.engine.RequestCycle.encodeURL(RequestCycle.java:205)
org.apache.tapestry.portlet.PortletLink.getURL(PortletLink.java:68)
org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:464)
org.apache.tapestry.form.Form.renderComponent(Form.java:250)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:274)
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:368)
org.apache.tapestry.portlet.PortletRendererImpl.renderPage(
PortletRendererImpl.java:70)
$PortletRenderer_106162610d7.renderPage($PortletRenderer_106162610d7.java)
$PortletRenderer_106162610d6.renderPage($PortletRenderer_106162610d6.java)
org.apache.tapestry.portlet.PortletHomeService.service(
PortletHomeService.java:83)
$IEngineService_106162610c2.service($IEngineService_106162610c2.java)
org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(
EngineServiceInnerProxy.java:74)
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
EngineServiceOuterProxy.java:65)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:254)
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:60)
$WebRequestServicer_1061626108f.service($WebRequestServicer_1061626108f.java)
$WebRequestServicer_1061626108e.service($WebRequestServicer_1061626108e.java)
$WebRequestServicer_1061626108d.service($WebRequestServicer_1061626108d.java)
$WebRequestServicer_1061626108c.service($WebRequestServicer_1061626108c.java)
org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBridge
.service(RenderRequestServicerToWebRequestServicerBridge.java:49)
$RenderRequestServicer_10616261087.service(
$RenderRequestServicer_10616261087.java)
$RenderRequestServicer_10616261086.service(
$RenderRequestServicer_10616261086.java)
$RenderRequestServicer_10616261081.service(
$RenderRequestServicer_10616261081.java)
$RenderRequestServicer_10616261080.service(
$RenderRequestServicer_10616261080.java)
org.apache.tapestry.portlet.ApplicationPortlet.render(
ApplicationPortlet.java:161)
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:205)
org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:237)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:157)
org.apache.catalina.core.ApplicationDispatcher.invoke(
ApplicationDispatcher.java:704)
org.apache.catalina.core.ApplicationDispatcher.doInclude(
ApplicationDispatcher.java:590)
org.apache.catalina.core.ApplicationDispatcher.include(
ApplicationDispatcher.java:510)
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(
PortletInvokerImpl.java:120)
org.apache.pluto.invoker.impl.PortletInvokerImpl.render(
PortletInvokerImpl.java:73)
org.apache.pluto.PortletContainerImpl.renderPortlet(
PortletContainerImpl.java:103)
org.jasig.portal.channels.portlet.CPortletAdapter.getMarkup(
CPortletAdapter.java:555)
org.jasig.portal.channels.portlet.CPortletAdapter.renderCharacters(
CPortletAdapter.java:482)
org.jasig.portal.MultithreadedCharacterChannelAdapter.renderCharacters(
MultithreadedCharacterChannelAdapter.java:71)
org.jasig.portal.ChannelRenderer$Worker.run(ChannelRenderer.java:483)
org.jasig.portal.utils.threading.Worker.run(Worker.java:88)
--------------------------------------------

I assume problem is in links.

Next week I'll try with eXo platform.

Ryan, what portal are you using?

Many thanks.

Andriy




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message