geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: rev 55637 - geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel
Date Tue, 26 Oct 2004 21:23:26 GMT
Author: chirino
Date: Tue Oct 26 14:23:25 2004
New Revision: 55637

Modified:
   geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
Log:
Added some logging so that you can see exceptions occuring when start is called on a module.

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java	(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java	Tue Oct
26 14:23:25 2004
@@ -321,14 +321,27 @@
     }
 
     public ObjectName startConfiguration(URI configID) throws NoSuchConfigException, IOException,
InvalidConfigException {
-        ObjectName configName = getConfigurationManager().load(configID);
         try {
-            startRecursiveGBean(configName);
-        } catch (InstanceNotFoundException e) {
-            // should not happen as we just loaded it
-            throw new InvalidConfigException(e);
-        }
-        return configName;
+			
+        	ObjectName configName = getConfigurationManager().load(configID);
+			try {
+			    startRecursiveGBean(configName);
+			} catch (InstanceNotFoundException e) {
+			    // should not happen as we just loaded it
+			    throw new InvalidConfigException(e);
+			}
+			return configName;
+			
+		} catch (NoSuchConfigException e) {
+			log.debug("Could not start configuration: "+configID, e);
+			throw e;
+		} catch (IOException e) {
+			log.debug("Could not start configuration: "+configID, e);
+			throw e;
+		} catch (InvalidConfigException e) {
+			log.debug("Could not start configuration: "+configID, e);
+			throw e;
+		}
     }
 
     public void stopConfiguration(URI configID) throws NoSuchConfigException {

Mime
View raw message