Re: error running portlet
Sujoy Mitra <[email protected]>
| Newsgroups | gmane.comp.jakarta.pluto.user |
|---|---|
| Message-ID | <OFFF973283.9F6E2D41-ON8525727D.006877A6-8525727D.0068B499@notes.uss.com> |
David Yes the code for 1.1 is successfully compiled in RAD6.0 I am trying to run the portlets in websphere test environment inside RAD6.0 ( trying to integrate it with Websphere 6) Here is the web.xml that I am using "David H. DeWolf" <[email protected]> 02/09/2007 01:57 PM Please respond to [email protected] To [email protected] cc Subject Re: error running portlet You're using a newer version (1.1) than the original poster, which is good, 1.1 has better error messages. Your exception is being thrown because the portlet application is not configured correctly. Pluto uses cross context dispatching to invoke portlets across web applications and it requires the PortletServlet to be configured in teh web.xml and mapped to /PlutoInvoker/<name of portlet>. Make sure this is setup correctly in your portlet app. If you need help with it, check out the "pluto assembler" which can automate that configuration for you (ant tasks and maven goals available). David Sujoy Mitra wrote: > > Hello All, > I am trying to run the Pluto 1.1 inside RAD6.0 and it gives me the > following error > The source code is successfully compiled inside RAD6.0 > > javax.portlet.PortletException: Unable to locate request dispatcher for > context Default Web Application and portlet /PlutoInvoker/TestPortlet1. > > > Any ideas > Attached is the screen shot: > > > > Thanks
web.xml
(application/octet-stream, 5.3 KB)
<?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">
<!--
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.
-->
<web-app>
<display-name>Apache Pluto Portal Driver</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/pluto-portal-driver-services-config.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.apache.pluto.driver.PortalStartupListener</listener-class>
</listener>
<servlet>
<servlet-name>plutoPortalDriver</servlet-name>
<display-name>Pluto Portal Driver</display-name>
<description>Pluto Portal Driver Controller</description>
<servlet-class>org.apache.pluto.driver.PortalDriverServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>plutoPortalDriverLogout</servlet-name>
<display-name>Pluto Portal Driver</display-name>
<description>Pluto Portal Driver Logout</description>
<servlet-class>org.apache.pluto.driver.PortalDriverLogoutServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>portletApplicationPublisher</servlet-name>
<display-name>Portlet Application Publisher</display-name>
<description>Portlet Application Publisher Service</description>
<servlet-class>org.apache.pluto.driver.PublishServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>tckDriver</servlet-name>
<display-name>Pluto TCK Driver</display-name>
<description>Pluto TCK Driver Controller</description>
<servlet-class>org.apache.pluto.driver.TCKDriverServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AboutPortlet</servlet-name>
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-name</param-name>
<param-value>AboutPortlet</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>AdminPortlet</servlet-name>
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-name</param-name>
<param-value>AdminPortlet</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>plutoPortalDriver</servlet-name>
<url-pattern>/portal/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>plutoPortalDriverLogout</servlet-name>
<url-pattern>/Logout</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>portletApplicationPublisher</servlet-name>
<url-pattern>/admin/Publish</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>tckDriver</servlet-name>
<url-pattern>/tck/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AboutPortlet</servlet-name>
<url-pattern>/PlutoInvoker/AboutPortlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminPortlet</servlet-name>
<url-pattern>/PlutoInvoker/AdminPortlet</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>http://java.sun.com/portlet</taglib-uri>
<taglib-location>/WEB-INF/tld/portlet.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://portals.apache.org/pluto</taglib-uri>
<taglib-location>/WEB-INF/tld/pluto.tld</taglib-location>
</taglib>
<security-constraint>
<web-resource-collection>
<web-resource-name>portal</web-resource-name>
<url-pattern>/portal</url-pattern>
<url-pattern>/portal/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>pluto</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login.jsp?error=1</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>pluto</role-name>
</security-role>
</web-app>