tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1297406 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
Date Tue, 06 Mar 2012 10:25:45 GMT
Author: rmannibucau
Date: Tue Mar  6 10:25:45 2012
New Revision: 1297406

URL: http://svn.apache.org/viewvc?rev=1297406&view=rev
Log:
using webmodule as fallback if no module type was found

Modified:
    openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java?rev=1297406&r1=1297405&r2=1297406&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java
Tue Mar  6 10:25:45 2012
@@ -1531,6 +1531,12 @@ public class DeploymentLoader implements
             return PersistenceModule.class;
         }
 
+        // fallback -> webapp as in tomcat
+        final File pathFile = new File(path);
+        if (pathFile.exists() && pathFile.isDirectory()) {
+            return WebModule.class;
+        }
+
         throw new UnknownModuleTypeException("Unknown module type: url=" + path); // baseUrl
can be null
     }
 



Mime
View raw message