Re: JSP and Portlets
"Pierpaolo Lombardi" <[email protected]> Mon, 25 Feb 2008 09:45:41 +0100
| Newsgroups | gmane.comp.jakarta.pluto.user |
|---|---|
| Message-ID | <[email protected]> |
I did those steps....but when I deploy the .war file, pluto gives me the
following error
GRAVE: Exception sending context initialized event to listener instance of
class org.apache.pluto.driver.PortalStartupListener
java.lang.NullPointerException
************************** My jsp file is
<%@ taglib uri="http://portals.apache.org/pluto" prefix="pluto" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<c:set var="portlet" value="/Prova.Prova" scope="request" />
<jsp:include page="/WEB-INF/portlet-skin.jsp"/>
</body>
</html>
portlet-skin.jsp is the pluto admin jsp...I copied it in my webbapp
*************************** My web.xml file is
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>plutoPortalDriver</filter-name>
<filter-class>org.apache.pluto.driver.PortalDriverFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>plutoPortalDriver</filter-name>
<url-pattern>/about.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>plutoPortalDriver</filter-name>
<url-pattern>/about.jsp/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.apache.pluto.driver.PortalStartupListener
</listener-class>
</listener>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>