geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r510752 - /geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java
Date Fri, 23 Feb 2007 01:27:16 GMT
Author: djencks
Date: Thu Feb 22 17:27:16 2007
New Revision: 510752

URL: http://svn.apache.org/viewvc?view=rev&rev=510752
Log:
Provide a bit more info if a module won't load

Modified:
    geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java

Modified: geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java?view=diff&rev=510752&r1=510751&r2=510752
==============================================================================
--- geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java
(original)
+++ geronimo/server/trunk/modules/geronimo-kernel/src/main/java/org/apache/geronimo/kernel/config/SerializedGBeanState.java
Thu Feb 22 17:27:16 2007
@@ -116,8 +116,12 @@
                 } finally {
                     ois.close();
                 }
+            } catch (ClassNotFoundException e) {
+                throw new InvalidConfigException("Class not loadable in classloader: " +
classLoader, e);
+            } catch (NoClassDefFoundError e) {
+                throw new InvalidConfigException("Class not loadable in classloader: " +
classLoader, e);
             } catch (Exception e) {
-                throw new InvalidConfigException("Unable to deserialize GBeanState", e);
+                throw new InvalidConfigException("Unable to deserialize GBeanState in classloader:
" + classLoader, e);
             } finally {
                 Thread.currentThread().setContextClassLoader(oldCl);
             }



Mime
View raw message