Author: genspring
Date: Tue May 31 16:26:12 2011
New Revision: 1129779

URL: http://svn.apache.org/viewvc?rev=1129779&view=rev
Log:
location should be the module URI instead of module id.

Modified:
    
openejb/trunk/openejb3/container/openejb-osgi-core/src/main/java/org/apache/openejb/osgi/core/BundleFinderFactory.java

Modified: 
openejb/trunk/openejb3/container/openejb-osgi-core/src/main/java/org/apache/openejb/osgi/core/BundleFinderFactory.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-osgi-core/src/main/java/org/apache/openejb/osgi/core/BundleFinderFactory.java?rev=1129779&r1=1129778&r2=1129779&view=diff
==============================================================================
--- 
openejb/trunk/openejb3/container/openejb-osgi-core/src/main/java/org/apache/openejb/osgi/core/BundleFinderFactory.java
 (original)
+++ 
openejb/trunk/openejb3/container/openejb-osgi-core/src/main/java/org/apache/openejb/osgi/core/BundleFinderFactory.java
 Tue May 31 16:26:12 2011
@@ -52,7 +52,7 @@ public class BundleFinderFactory extends
             BundleContext bundleContext = bundle.getBundleContext();
             ServiceReference sr = 
bundleContext.getServiceReference(PackageAdmin.class.getName());
             PackageAdmin packageAdmin = (PackageAdmin) 
bundleContext.getService(sr);
-            final String location = module.getModuleId();
+            final String location = module.getModuleUri().toString();
             boolean useLocation = location != null
                     && !location.isEmpty()
                     && !module.getJarLocation().endsWith(".war")


Reply via email to