Hello,In my server, I deploy my own portal application on pluto 1.1.4(pluto-1.1.4-bundle) failed, but the other one's portlet based on springMVC will work will. why? It's the portlet application dependencies springmvc object and I can find the spring-context-2.0.2.jar,spring-core-2.0.2.jar,spring-beans-2.0.2.jar,spring-web-2.0.2.jar in pluto-1.1.4-bundle\pluto-1.1.4\PlutoDomain\pluto-portal-1.1.4\WEB-INF\lib, is it? With this problem, I successful deloy the petportal which from the spring-framework 2.5.4 on my server, but my own is failure again and again. for example, I written a minimal portlet application,please correct me: (the project source file will in the mail attachment) //SimplePortlet package com.ccsee.simpleportal.portlet; import java.io.IOException; import java.io.PrintWriter; import javax.portlet.GenericPortlet; import javax.portlet.PortletException; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; public class SimplePortlet extends GenericPortlet { @Override protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { response.setContentType("text/html"); PrintWriter writer = new PrintWriter(response.getWriter()); writer.println("Hello, simple portal! you're in VIEW mode."); } } //portlet.xml <?xml version="1.0" encoding="UTF-8"?> <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>Hello, simple portlet</description> <portlet-name>SimplePortlet</portlet-name> <portlet-class>com.ccsee.simpleportal.portlet.SimplePortlet</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>simple portlet</title> </portlet-info> </portlet> </portlet-app> //web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>simpleportal</display-name> <servlet> <servlet-name>SimplePortlet</servlet-name> <servlet-class>org.apache.pluto.core.PortletServlet</servlet-class> <init-param> <param-name>portlet-name</param-name> <param-value>SimplePortlet</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>SimplePortlet</servlet-name> <url-pattern>/PlutoInvoker/SimplePortlet</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app>
//simpleportal.xml in web/META-INF <Context path="/simpleportal" docBase="simpleportal" crossContext="true" />
simpleportal.rar
Description: Binary data