cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1225881 - in /cxf/branches/2.4.x-fixes: ./ rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Date Fri, 30 Dec 2011 18:13:36 GMT
Author: sergeyb
Date: Fri Dec 30 18:13:35 2011
New Revision: 1225881

URL: http://svn.apache.org/viewvc?rev=1225881&view=rev
Log:
Merged revisions 1225880 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1225880 | sergeyb | 2011-12-30 18:12:14 +0000 (Fri, 30 Dec 2011) | 1 line
  
  Reporting the dispatcher name in case of the failure
........

Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Dec 30 18:13:35 2011
@@ -1 +1 @@
-/cxf/trunk:1225217,1225494,1225521,1225538,1225563,1225876
+/cxf/trunk:1225217,1225494,1225521,1225538,1225563,1225876,1225880

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java?rev=1225881&r1=1225880&r2=1225881&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Fri Dec 30 18:13:35 2011
@@ -240,7 +240,11 @@ public abstract class AbstractHTTPServle
             ? sc.getNamedDispatcher(dispatcherServletName) 
             : sc.getRequestDispatcher(theServletPath + pathInfo);
         if (rd == null) {
-            throw new ServletException("No RequestDispatcher can be created for path " +
pathInfo);
+            String errorMessage = "No RequestDispatcher can be created for path " + pathInfo;
+            if (dispatcherServletName != null) {
+                errorMessage += ", dispatcher name: " + dispatcherServletName;
+            }
+            throw new ServletException(errorMessage);
         }
         try {
             HttpServletRequestFilter servletRequest = 



Mime
View raw message