You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2012/01/30 22:17:53 UTC

svn commit: r1238023 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/config/DeploymentLoader.java

Author: rmannibucau
Date: Mon Jan 30 21:17:53 2012
New Revision: 1238023

URL: http://svn.apache.org/viewvc?rev=1238023&view=rev
Log:
reverting reading web-inf/classes/META-INF for war since it should simply be WEB-INF

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=1238023&r1=1238022&r2=1238023&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 Mon Jan 30 21:17:53 2012
@@ -643,33 +643,7 @@ public class DeploymentLoader implements
         // conditions are met.  These conditions are different
         // than an ear file, so the ear-style code we were previously
         // using doesn't exactly work anymore.
-        //
-        // EjbModule webEjbModule = new EjbModule(webModule.getClassLoader(), webModule.getModuleId(), webModule.getJarLocation(), null, null);
-        EjbModule webEjbModule = null;
-        StringBuilder webInfClassesPath;
-        if (!warPath.toLowerCase().endsWith(".war")) {
-            webInfClassesPath = new StringBuilder(warPath);
-        } else {
-            webInfClassesPath = new StringBuilder(warPath.substring(0, warPath.length() - 4));
-        }
-        if (!warPath.endsWith("/")) {
-            webInfClassesPath.append("/");
-        }
-        webInfClassesPath.append("WEB-INF/classes");
-        final String webInfClasses = webInfClassesPath.toString();
-        final File webInfClassesFile = new File(webInfClasses);
-        if (webInfClassesFile.exists()) {
-            try {
-                webEjbModule = createEjbModule(webInfClassesFile.toURI().toURL(), webModule.getJarLocation(), webModule.getClassLoader(), webModule.getModuleId());
-            } catch (MalformedURLException e) {
-                logger.error("can't create an ejbmodule with WEB-INF/classes");
-                // don't throw it we use the next test to initialize the ejbmodule
-            }
-        }
-        if (webEjbModule == null) {
-            webEjbModule = new EjbModule(webModule.getClassLoader(), webModule.getModuleId(), webModule.getJarLocation(), null, null);
-        }
-
+        EjbModule webEjbModule = new EjbModule(webModule.getClassLoader(), webModule.getModuleId(), webModule.getJarLocation(), null, null);
         webEjbModule.getAltDDs().putAll(webModule.getAltDDs());
         appModule.getEjbModules().add(webEjbModule);