tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject svn commit: r1062930 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/FinderFactory.java
Date Mon, 24 Jan 2011 19:14:53 GMT
Author: jgallimore
Date: Mon Jan 24 19:14:53 2011
New Revision: 1062930

URL: http://svn.apache.org/viewvc?rev=1062930&view=rev
Log:
OPENEJB-1426 fix deployment error

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

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/FinderFactory.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/FinderFactory.java?rev=1062930&r1=1062929&r2=1062930&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/FinderFactory.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/FinderFactory.java
Mon Jan 24 19:14:53 2011
@@ -60,6 +60,11 @@ public class FinderFactory {
             URL url;
             if (file.exists()) {
                 url = file.toURI().toURL();
+                
+                File webInfClassesFolder = new File(file, "WEB-INF/classes");
+				if (webInfClassesFolder.exists() && webInfClassesFolder.isDirectory()) {
+                	url = webInfClassesFolder.toURI().toURL();
+                }
             } else {
                 url = new URL(location);
             }



Mime
View raw message