cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhar...@apache.org
Subject svn commit: r740844 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java
Date Wed, 04 Feb 2009 19:54:56 GMT
Author: bharath
Date: Wed Feb  4 19:54:56 2009
New Revision: 740844

URL: http://svn.apache.org/viewvc?rev=740844&view=rev
Log:
In the loadSpringBus() method, in case org.springframework.context.ApplicationContext class
could not be loaded, we log an error message and create a ServletException, but never throw
it. Fixed this to throw the exception back.

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

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java?rev=740844&r1=740843&r2=740844&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/CXFServlet.java
Wed Feb  4 19:54:56 2009
@@ -70,7 +70,7 @@
             loadSpringBus(servletConfig);
         } catch (ClassNotFoundException e) {                
             LOG.log(Level.SEVERE, "FAILED_TO_LOAD_SPRING_BUS", new Object[]{e});
-            new ServletException("Can't load bus with Spring context class", e);
+            throw new ServletException("Can't load bus with Spring context class", e);
         }
     }
     



Mime
View raw message