geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1230384 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
Date Thu, 12 Jan 2012 03:12:48 GMT
Author: rwonly
Date: Thu Jan 12 03:12:48 2012
New Revision: 1230384

URL: http://svn.apache.org/viewvc?rev=1230384&view=rev
Log:
GERONIMO-5956 issues when deploy a standalone ejb web services #2 (thanks Xiao Yi for the
patch!)

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

Modified: geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java?rev=1230384&r1=1230383&r2=1230384&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
(original)
+++ geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilder.java
Thu Jan 12 03:12:48 2012
@@ -182,6 +182,8 @@ import org.slf4j.LoggerFactory;
 @GBean(j2eeType = NameFactory.MODULE_BUILDER)
 public class EjbModuleBuilder implements ModuleBuilder, GBeanLifecycle, ModuleBuilderExtension
{
     private static final Logger log = LoggerFactory.getLogger(EjbModuleBuilder.class);
+    
+    private static final String DEFAULT_BUNDLE_CLASSPATH = ".";
 
     private static final String OPENEJBJAR_NAMESPACE = XmlUtil.OPENEJBJAR_QNAME.getNamespaceURI();
     private static final Map<String, String> NAMESPACE_UPDATES = new HashMap<String,
String>();
@@ -643,6 +645,7 @@ public class EjbModuleBuilder implements
             EARContext moduleContext;
             if (module.isStandAlone()) {
                 moduleContext = earContext;
+                earContext.addToClassPath(DEFAULT_BUNDLE_CLASSPATH);
             } else {
                 moduleContext = new FragmentContext(earContext, ConfigurationModuleType.EJB);
                 //            Environment environment = earContext.getConfiguration().getEnvironment();



Mime
View raw message