[seam-commits] Seam SVN: r8769 - in trunk/src/main/org/jboss/seam: init and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Aug 21 21:52:26 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-08-21 21:52:26 -0400 (Thu, 21 Aug 2008)
New Revision: 8769

Modified:
   trunk/src/main/org/jboss/seam/cache/JbossCacheProvider.java
   trunk/src/main/org/jboss/seam/init/DependencyManager.java
Log:
fix NoClassDefFoundError, improved logging

Modified: trunk/src/main/org/jboss/seam/cache/JbossCacheProvider.java
===================================================================
--- trunk/src/main/org/jboss/seam/cache/JbossCacheProvider.java	2008-08-21 20:15:43 UTC (rev 8768)
+++ trunk/src/main/org/jboss/seam/cache/JbossCacheProvider.java	2008-08-22 01:52:26 UTC (rev 8769)
@@ -27,7 +27,7 @@
 @Name("org.jboss.seam.cache.cacheProvider")
 @Scope(APPLICATION)
 @BypassInterceptors
- at Install(precedence = FRAMEWORK, classDependencies="org.jboss.cache.TreeCache")
+ at Install(precedence = FRAMEWORK, classDependencies="org.jboss.cache.TreeCache,org.jgroups.MembershipListener")
 @AutoCreate
 public class JbossCacheProvider extends AbstractJBossCacheProvider<TreeCache>
 {

Modified: trunk/src/main/org/jboss/seam/init/DependencyManager.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/DependencyManager.java	2008-08-21 20:15:43 UTC (rev 8768)
+++ trunk/src/main/org/jboss/seam/init/DependencyManager.java	2008-08-22 01:52:26 UTC (rev 8769)
@@ -7,6 +7,9 @@
 import java.util.Set;
 import java.util.TreeSet;
 
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
+
 /**
  * Evaluates component dependencies to determine which
  * components are installed.
@@ -19,6 +22,8 @@
     private Map<String, Set<ComponentDescriptor>> componentDescriptors;
     private Set<ComponentDescriptor> currentTestSet;
     private Set<ComponentDescriptor> installedSet;
+    
+    private final LogProvider log = Logging.getLogProvider(DependencyManager.class);    
 
     public DependencyManager(Map<String, Set<ComponentDescriptor>> componentDescriptors) 
     {
@@ -141,6 +146,12 @@
             {
                 return false;                 
             }
+            catch (NoClassDefFoundError e)
+            {
+               log.error("Error while checking dependencies for component class " + 
+                     descriptor.getComponentClass().getName(), e);
+               throw e;
+            }
         }
 
         return true;




More information about the seam-commits mailing list