openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r922995 - in /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans: servlet/WebBeansConfigurationListener.java web/lifecycle/WebContainerLifecycle.java
Date Sun, 14 Mar 2010 22:52:12 GMT
Author: gerdogdu
Date: Sun Mar 14 22:52:12 2010
New Revision: 922995

URL: http://svn.apache.org/viewvc?rev=922995&view=rev
Log:
Update for TCK

Modified:
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/servlet/WebBeansConfigurationListener.java
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/servlet/WebBeansConfigurationListener.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/servlet/WebBeansConfigurationListener.java?rev=922995&r1=922994&r2=922995&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/servlet/WebBeansConfigurationListener.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/servlet/WebBeansConfigurationListener.java
Sun Mar 14 22:52:12 2010
@@ -30,6 +30,7 @@ import org.apache.webbeans.conversation.
 import org.apache.webbeans.lifecycle.LifecycleFactory;
 import org.apache.webbeans.logger.WebBeansLogger;
 import org.apache.webbeans.spi.ContainerLifecycle;
+import org.apache.webbeans.util.WebBeansUtil;
 
 /**
  * Initializing the beans container for using in an web application
@@ -67,6 +68,7 @@ public class WebBeansConfigurationListen
         catch (Exception e)
         {
              logger.error("Error is occured while starting application context path : " +
event.getServletContext().getContextPath());
+             WebBeansUtil.throwRuntimeExceptions(e);
         }
     }
     
@@ -121,7 +123,8 @@ public class WebBeansConfigurationListen
         }
         catch (Exception e)
         {
-            logger.error("Error is occured while starting request : " + event.getServletRequest());
       
+            logger.error("Error is occured while starting request : " + event.getServletRequest());
+            WebBeansUtil.throwRuntimeExceptions(e);
         }
     }
 
@@ -138,6 +141,7 @@ public class WebBeansConfigurationListen
         catch (Exception e)
         {
             logger.error("Error is occured while starting session : " + event.getSession());
+            WebBeansUtil.throwRuntimeExceptions(e);
         }
     }
 

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java?rev=922995&r1=922994&r2=922995&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/lifecycle/WebContainerLifecycle.java
Sun Mar 14 22:52:12 2010
@@ -117,7 +117,10 @@ public final class WebContainerLifecycle
      */
     protected void beforeStopApplication(Object stopObject) throws Exception
     {
-        service.shutdownNow();                
+        if(service != null)
+        {
+            service.shutdownNow();   
+        }                
     }
 
     /**



Mime
View raw message