geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r504135 - /geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
Date Tue, 06 Feb 2007 13:37:12 GMT
Author: dblevins
Date: Tue Feb  6 05:37:11 2007
New Revision: 504135

URL: http://svn.apache.org/viewvc?view=rev&rev=504135
Log:
don't attempt to processes non-ejb modules (take 2)

Modified:
    geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java

Modified: geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java?view=diff&rev=504135&r1=504134&r2=504135
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
Tue Feb  6 05:37:11 2007
@@ -153,9 +153,10 @@
         AppModule appModule = null;
         try {
             appModule = loader.load(file);
-        } catch (UnsupportedOperationException e){
-            // not an ejb module
         } catch (OpenEJBException e) {
+            if (e.getMessage().startsWith("Unsupported module type")){
+                return null;
+            }
             throw new DeploymentException(e);
         }
 
@@ -163,7 +164,7 @@
             // not an ejb module
             return null;
         }
-        
+
         org.apache.openejb.config.EjbModule ejbModule = appModule.getEjbModules().get(0);
 
 



Mime
View raw message