portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container JetspeedContainerServlet.java
Date Mon, 19 Jan 2004 22:02:31 GMT
weaver      2004/01/19 14:02:31

  Modified:    commons/src/java/org/apache/jetspeed/container
                        JetspeedContainerServlet.java
  Log:
  log the error if the failing portlet's name if at all possible
  
  Revision  Changes    Path
  1.7       +4 -3      jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java
  
  Index: JetspeedContainerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/commons/src/java/org/apache/jetspeed/container/JetspeedContainerServlet.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JetspeedContainerServlet.java	13 Jan 2004 17:38:36 -0000	1.6
  +++ JetspeedContainerServlet.java	19 Jan 2004 22:02:31 -0000	1.7
  @@ -209,6 +209,7 @@
        */
       public final void doGet(HttpServletRequest request, HttpServletResponse response) throws
IOException, ServletException
       {
  +    	String portletName = null;
           try
           {
               // Check to make sure that we started up properly.
  @@ -227,7 +228,7 @@
   
               PortletDefinition portletDefinition = (PortletDefinition) request.getAttribute(ContainerConstants.PORTLET_ENTITY);
               Portlet portlet = JetspeedPortletFactory.getPortlet(this.getServletConfig(),
portletDefinition);
  -
  +			portletName = portletDefinition.getName();
               Integer method = (Integer) request.getAttribute(ContainerConstants.METHOD_ID);
               if (method == ContainerConstants.METHOD_NOOP)
               {
  @@ -258,7 +259,7 @@
           catch (Throwable t)
           {
   
  -            log.error("Error rendering portlet: " + t.toString(), t);
  +            log.error("Error rendering portlet \""+portletName+"\": " + t.toString(), t);
               try
               {
                   String errorTemplate = getInitParameter("portal.error.page");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message