Thanks for the quick reply. I changed:
<page name="Struts Portlet Example"
uri="/WEB-INF/themes/pluto-default-theme.jsp">
<portlet context="/StrutsExample" name="StrutsExamplePortlet"/>
</page>
per your suggestion. I still get the same error:
INFO: Portlet Context '/StrutsExample' registered.
Dec 5, 2008 9:48:48 AM org.apache.pluto.core.PortletContextManager register
INFO: Registered portlet application with application id '/StrutsExample'
Dec 5, 2008 9:48:48 AM org.apache.pluto.core.PortletContextManager register
INFO: Registering 1 portlets for context /StrutsExample
Dec 5, 2008 9:48:48 AM org.apache.pluto.core.PortletContextManager
getPortletConfig
INFO: Unable to locate portlet config [applicationId=/StrutsExample]/[null].
Dec 5, 2008 9:48:48 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NullPointerException
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:106)
when trying to render the portlet in Pluto 1.1.6. If you have an example of
a Struts 2 portlet that you've successfully deployed into Pluto 1.1.6 I'd
love to see your struts.xml, portlet.xml, web.xml, and
pluto-portal-driver-config.xml files to see if I've missed some setting.
Bruce
Nils-Helge Garli wrote:
>
> On Fri, Dec 5, 2008 at 3:50 PM, Phillips, Bruce A <[EMAIL PROTECTED]>
> wrote:
>> We have been using the Pluto 1.1.6 Portlet container
>> (http://portals.apache.org/pluto/) to test our JSR-168 portlets. Our
>> team needs help learning the correct way to setup a Struts 2 portlet to
>> run within the Pluto 1.1.6 portlet container. We've studied the Struts
>> 2 example portlet tutorial
>> (http://struts.apache.org/2.0.11.1/docs/struts-2-portlet-tutorial.html )
>> in the Struts 2 documentation. However, that portlet is deployed using
>> maven, jetty, and Pluto; which unfortunately is not our development
>> environment.
>>
>
> It's a very efficient development environment. You should try it out.
>
>>
>> <portlet id="StrutsExamplePortlet">
>>
>> <description xml:lang="EN">Simple hello world portlet using
>> Struts 2</description>
>>
>> <portlet-name>StrutsExamplePortlet</portlet-name>
>>
>
>
> <snip>
>
>>
>> </init-param>
>>
>> <init-param>
>>
>> <param-name>portlet-guid</param-name>
>>
>> <param-value>
>>
>> StrutsExample.StrutsExamplePortlet
>>
>> </param-value>
>>
>> </init-param>
>>
>
> <snip>
>
>
>
>> <portlet context="/StrutsExample" name="StrutsExample"/>
>>
>
>
>
> From what I can understand, your portlet name is StrutsExamplePortlet,
> not StrutsExample (which is your context). So try this:
>
> <portlet context="/StrutsExample" name="StrutsExamplePortlet"/>
>
> I'm using pluto for all my portlet development and have never had any
> issues with Struts 2 support.
>
> Nils-H
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Deploying-Struts-2-Portlet-Into-Pluto-1.1.6-Portlet-Container-tp20855416p20856962.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]