RE: Pluto 1.1.4 - java.lang.InstantiationException while deploying

Murthy Gandikota <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
I followed the steps indicated by
a) http://www.ociweb.com/jnb/jnbAug2006.html
b) http://portals.apache.org/pluto/v11/deploying.html

Successfully created the war file with maven and deployed without errors

I still see the exception given below.

The URL given in (a) uses JetSpeed2. Do I need that too?

Thanks
Murthy
-----Original Message-----
From: Murthy Gandikota [mailto:[email protected]]
Sent: Tuesday, September 04, 2007 6:22 PM
To: [email protected]
Subject: RE: Pluto 1.1.4 - java.lang.InstantiationException while deploying

Ben Wrote:
>Probably the problem that you are having is related to:

>>       <servlet-class>javax.portlet.GenericPortlet
>>       </servlet-class>

>This is in an incorrect way to map the servlet.  This class should be
>org.apache.pluto.core.PortletServlet.

With the change done as suggested above the error now is:

SEVERE: Servlet.service() for servlet HelloWorld threw exception
java.lang.NullPointerException
        at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:196)
        at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)

I think the exception in the dispatch is because the following session variables are not set:

javax.portlet.response
javax.portlet.request
org.apache.pluto.core.method

The relevant code from PortletServlet.java

// Retrieve attributes from the servlet request.
        Integer methodId = (Integer) request.getAttribute(
            Constants.METHOD_ID);

        portletRequest = (InternalPortletRequest) request.getAttribute(
            Constants.PORTLET_REQUEST);

        portletResponse = (InternalPortletResponse) request.getAttribute(
            Constants.PORTLET_RESPONSE);


I'd appreciate some more help. May be someone can post the web.xml that works!

Thanks
Murthy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.