Hello, I am trying to deploy a sample portlet with Tomcat 5.5.9 and Pluto 1.0.1-rc2, but it keeps throwing up a known error:
java.lang.NullPointerException > at > org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:107) as per this post in the pluto dev mail archive: http://portals.apache.org/mail/pluto-dev/200505 I have checked my web.xml and portlet.xml (both are below) but I cannot seem to find a solution. ---------------------- web.xml ---- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>testsuite-1.0.1</display-name> <description>Automated generated Application Wrapper</description> <servlet> <servlet-name>TestPortlet2</servlet-name> <display-name>TestPortlet2 Wrapper</display-name> <description>Automated generated Portlet Wrapper</description> <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class> <init-param> <param-name>portlet-class</param-name> <param-value>org.apache.pluto.portalImpl.portlet.TestPortlet</param-value> </init-param> <init-param> <param-name>portlet-guid</param-name> <param-value>testsuite-1.0.1.TestPortlet2</param-value> </init-param> </servlet> <servlet> <servlet-name>TestPortlet1</servlet-name> <display-name>TestPortlet1 Wrapper</display-name> <description>Automated generated Portlet Wrapper</description> <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class> <init-param> <param-name>portlet-guid</param-name> <param-value>testsuite-1.0.1.TestPortlet1</param-value> </init-param> <init-param> <param-name>portlet-class</param-name> <param-value>org.apache.pluto.portalImpl.portlet.TestPortlet</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>TestPortlet2</servlet-name> <url-pattern>/TestPortlet2/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>TestPortlet1</servlet-name> <url-pattern>/TestPortlet1/*</url-pattern> </servlet-mapping> <taglib> <taglib-uri>http://java.sun.com/portlet</taglib-uri> <taglib-location>/WEB-INF/tld/portlet.tld</taglib-location> </taglib> </web-app> ------------------------------------------------------------------------------------------------------------ end of web.xml ---------------------------------- portlet.xml ---------------------------- <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"> <portlet> <description>TestSuiteDescription</description> <portlet-name>TestPortlet1</portlet-name> <display-name>Test Portlet #1</display-name> <portlet-class>org.apache.pluto.portalImpl.portlet.TestPortlet</portlet-class> <init-param> <name>dummyName</name> <value>dummyValue</value> </init-param> <expiration-cache>-1</expiration-cache> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> <portlet-mode>EDIT</portlet-mode> <portlet-mode>HELP</portlet-mode> </supports> <supported-locale>en</supported-locale> <supported-locale>de</supported-locale> <portlet-info> <title>Test Portlet #1</title> <short-title>Test1</short-title> <keywords>Test, Testen</keywords> </portlet-info> <portlet-preferences> <preference> <name>dumnmyName</name> <value>dummyValue</value> <read-only>false</read-only> </preference> <preference> <name>dummyName2</name> <value>dummyValue2</value> </preference> <preferences-validator>org.apache.pluto.core.impl.PreferencesValidatorImpl</preferences-validator> </portlet-preferences> </portlet> <portlet> <description>TestSuiteDescription</description> <portlet-name>TestPortlet2</portlet-name> <display-name>Test Portlet #2</display-name> <portlet-class>org.apache.pluto.portalImpl.portlet.TestPortlet</portlet-class> <init-param> <name>dummyName</name> <value>dummyValue</value> </init-param> <expiration-cache>-1</expiration-cache> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> <portlet-mode>EDIT</portlet-mode> <portlet-mode>HELP</portlet-mode> </supports> <supported-locale>en</supported-locale> <supported-locale>de</supported-locale> <!--resource-bundle>TestPortlet</resource-bundle--> <portlet-info> <title>Test Portlet #2</title> <short-title>Test2</short-title> <keywords>Test, Testing</keywords> </portlet-info> <portlet-preferences > <preference> <name>dummyName</name> <value>dummyValue</value> <read-only>false</read-only> </preference> <preference> <name>dummyName2</name> <value>dummyValue2</value> </preference> <preferences-validator>org.apache.pluto.core.impl.PreferencesValidatorImpl</preferences-validator> </portlet-preferences> </portlet> </portlet-app> ----------------------------------------------------------------- end of portlet.xml. Any help is much appreciated. Thanks, Kashif - [EMAIL PROTECTED]
