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

Murthy Gandikota <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
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.