Author: struberg
Date: Wed Feb 23 13:14:16 2011
New Revision: 1073731

URL: http://svn.apache.org/viewvc?rev=1073731&view=rev
Log:
OWB-461 remove e.printStackTrace() from our tomcat plugins

Modified:
    
openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
    
openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java

Modified: 
openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
URL: 
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java?rev=1073731&r1=1073730&r2=1073731&view=diff
==============================================================================
--- 
openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
 (original)
+++ 
openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
 Wed Feb 23 13:14:16 2011
@@ -109,7 +109,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }        
     }
 
@@ -186,7 +186,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
     }
     
@@ -381,7 +381,7 @@ public class ContextLifecycleListener im
         }
         catch (Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
 
     }
@@ -457,9 +457,9 @@ public class ContextLifecycleListener im
             {
                 return clazz.getDeclaredField((String)parameters);
             }
-            catch (Exception exception)
+            catch (NoSuchFieldException e)
             {
-                return exception;
+                throw new RuntimeException(e);
             }
         }
 

Modified: 
openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
URL: 
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java?rev=1073731&r1=1073730&r2=1073731&view=diff
==============================================================================
--- 
openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
 (original)
+++ 
openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
 Wed Feb 23 13:14:16 2011
@@ -109,7 +109,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }        
     }
 
@@ -186,7 +186,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
     }
     
@@ -381,7 +381,7 @@ public class ContextLifecycleListener im
         }
         catch (Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
 
     }
@@ -457,9 +457,9 @@ public class ContextLifecycleListener im
             {
                 return clazz.getDeclaredField((String)parameters);
             }
-            catch (Exception exception)
+            catch (NoSuchFieldException e)
             {
-                return exception;
+                throw new RuntimeException(e);
             }
         }
 


Reply via email to