You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Randy Leonard <oc...@mac.com> on 2007/02/09 19:00:56 UTC
Liferay/Tapestry portlet error
I am trying to deploy the sample-tapestry-portlet example which comes
bundled with Liferay 4.2.1 Professional (Tomcat 5.5 and JDK5), but
having an issue when loading the portlet into the Liferay runtime.
Note I am using Tapestry 4.1.1, with the Tapestry jars installed in
tomcat/shared/lib. I also deployed the Tapestry (and other example
Liferay portlets) using the build script included with the examples.
Liferay starts fine, but I get the following exception when loading
the tapestry portlet included with the Liferay distribution.
With an exception trace as follows:
17:33:21,631 ERROR [PortletServlet:56] javax.portlet.PortletException
Feb 9, 2007 10:33:21 AM
org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet sample_tapestry_portlet threw
exception
javax.portlet.PortletException
at
org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBri
dge.service(RenderRequestServicerToWebRequestServicerBridge.java:54)
at $RenderRequestServicer_110a78ee9d8.service
($RenderRequestServicer_110a78ee9d8.java)
at $RenderRequestServicer_110a78ee9d7.service
($RenderRequestServicer_110a78ee9d7.java)
at $RenderRequestServicer_110a78ee9d2.service
($RenderRequestServicer_110a78ee9d2.java)
at $RenderRequestServicer_110a78ee9d1.service
($RenderRequestServicer_110a78ee9d1.java)
at org.apache.tapestry.portlet.ApplicationPortlet.render
(ApplicationPortlet.java:161)
at com.liferay.portal.kernel.servlet.PortletServlet.service
(PortletServlet.java:94)
and the nested exception is:
Nested Exception is java.lang.NullPointerException: Property
'webRequest' of is null.
at $WebRequest_110a78eea02._targetServiceProperty
($WebRequest_110a78eea02.java)
at $WebRequest_110a78eea02.getLocale($WebRequest_110a78eea02.java)
at $WebRequest_110a78ee9c6.getLocale($WebRequest_110a78ee9c6.java)
at $WebRequest_110a78ee9c5.getLocale($WebRequest_110a78ee9c5.java)
at
org.apache.tapestry.services.impl.RequestLocaleManagerImpl.extractLocale
ForCurrentRequest(RequestLocaleManagerImpl.java:94)
The culprit seems to be a missing definition for the 'webRequest'
property. I've done quite a bit of searching on the web, and found
what appears to be a need for adding the following to the portlet's
hivemind.xml file:
construct property="webRequest" service-id="RequestGlobals"
But I'm unsure of the surrounding invoke-factory and service-point
tags, as documentation & examples seem hard to find.
Has anyone experienced/resolved this issue with Liferay/Tapestry &
Portlets. Am I on the right track?
Thanks,
Randy Leonard
Re: Liferay/Tapestry portlet error
Posted by Howard Lewis Ship <hl...@gmail.com>.
Hats off to Liferay, I wasn't even aware that they packaged an example
Tapestry portlet. I did most of the portlet development &
experimentation with eXo because I was able to figure out how to
deploy a portlet (they also had an Eclise plugin to help) but I never
delved far enough into Liferay to figure that out. I'm sure stuff has
changed in the last two years.
On 2/9/07, Randy Leonard <oc...@mac.com> wrote:
> I am trying to deploy the sample-tapestry-portlet example which comes
> bundled with Liferay 4.2.1 Professional (Tomcat 5.5 and JDK5), but
> having an issue when loading the portlet into the Liferay runtime.
> Note I am using Tapestry 4.1.1, with the Tapestry jars installed in
> tomcat/shared/lib. I also deployed the Tapestry (and other example
> Liferay portlets) using the build script included with the examples.
>
> Liferay starts fine, but I get the following exception when loading
> the tapestry portlet included with the Liferay distribution.
>
> With an exception trace as follows:
>
> 17:33:21,631 ERROR [PortletServlet:56] javax.portlet.PortletException
> Feb 9, 2007 10:33:21 AM
> org.apache.catalina.core.ApplicationDispatcher invoke
> SEVERE: Servlet.service() for servlet sample_tapestry_portlet threw
> exception
> javax.portlet.PortletException
> at
> org.apache.tapestry.portlet.RenderRequestServicerToWebRequestServicerBri
> dge.service(RenderRequestServicerToWebRequestServicerBridge.java:54)
> at $RenderRequestServicer_110a78ee9d8.service
> ($RenderRequestServicer_110a78ee9d8.java)
> at $RenderRequestServicer_110a78ee9d7.service
> ($RenderRequestServicer_110a78ee9d7.java)
> at $RenderRequestServicer_110a78ee9d2.service
> ($RenderRequestServicer_110a78ee9d2.java)
> at $RenderRequestServicer_110a78ee9d1.service
> ($RenderRequestServicer_110a78ee9d1.java)
> at org.apache.tapestry.portlet.ApplicationPortlet.render
> (ApplicationPortlet.java:161)
> at com.liferay.portal.kernel.servlet.PortletServlet.service
> (PortletServlet.java:94)
>
>
> and the nested exception is:
>
> Nested Exception is java.lang.NullPointerException: Property
> 'webRequest' of is null.
> at $WebRequest_110a78eea02._targetServiceProperty
> ($WebRequest_110a78eea02.java)
> at $WebRequest_110a78eea02.getLocale($WebRequest_110a78eea02.java)
> at $WebRequest_110a78ee9c6.getLocale($WebRequest_110a78ee9c6.java)
> at $WebRequest_110a78ee9c5.getLocale($WebRequest_110a78ee9c5.java)
> at
> org.apache.tapestry.services.impl.RequestLocaleManagerImpl.extractLocale
> ForCurrentRequest(RequestLocaleManagerImpl.java:94)
>
>
>
> The culprit seems to be a missing definition for the 'webRequest'
> property. I've done quite a bit of searching on the web, and found
> what appears to be a need for adding the following to the portlet's
> hivemind.xml file:
>
> construct property="webRequest" service-id="RequestGlobals"
>
> But I'm unsure of the surrounding invoke-factory and service-point
> tags, as documentation & examples seem hard to find.
>
>
> Has anyone experienced/resolved this issue with Liferay/Tapestry &
> Portlets. Am I on the right track?
>
> Thanks,
> Randy Leonard
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org