You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by cd...@apache.org on 2005/04/07 20:57:00 UTC

svn commit: r160433 - portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java

Author: cdoremus
Date: Thu Apr  7 11:56:59 2005
New Revision: 160433

URL: http://svn.apache.org/viewcvs?view=rev&rev=160433
Log:
Made changes to allow admin portlets to work in non-Tomcat containers. Improved error handling.

Modified:
    portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java

Modified: portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java?view=diff&r1=160432&r2=160433
==============================================================================
--- portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java (original)
+++ portals/pluto/trunk/portal/src/java/org/apache/pluto/portlet/admin/controller/DeployWarPortlet.java Thu Apr  7 11:56:59 2005
@@ -137,7 +137,7 @@
 
 	  	} catch (Throwable e) {
 				log("Error! ", e);
-				request.getPortletSession().setAttribute(PlutoAdminConstants.ERROR_ATTR, e);
+			    request.getPortletSession().setAttribute(PlutoAdminConstants.MESSAGE_ATTR, new PortletMessage("A problem has occurred: " + e.getMessage() + ". Please check the servlet container's error log.", PortletMessageType.ERROR));
 			}
     }