cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1225880 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Date Fri, 30 Dec 2011 18:12:14 GMT
Author: sergeyb
Date: Fri Dec 30 18:12:14 2011
New Revision: 1225880

URL: http://svn.apache.org/viewvc?rev=1225880&view=rev
Log:
Reporting the dispatcher name in case of the failure

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java?rev=1225880&r1=1225879&r2=1225880&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Fri Dec 30 18:12:14 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