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