Adrian Brock [
http://community.jboss.org/people/adrian%40jboss.org] replied to the
discussion
"On demand resolution"
To view the discussion, visit:
http://community.jboss.org/message/534904#534904
--------------------------------------------------------------
To pass one of the other tests you added, I had to change the OSGi classloader shutdown
policy to GC.
I thought you'd done that a while ago, but apparantly not (at least I couldn't
find it?)
Index: AbstractClassLoadingDeployer.java
===================================================================
--- AbstractClassLoadingDeployer.java (revision 103305)
+++ AbstractClassLoadingDeployer.java (working copy)
@@ -26,6 +26,7 @@
import java.util.List;
import org.jboss.classloader.spi.ClassLoaderDomain;
+import org.jboss.classloader.spi.ShutdownPolicy;
import org.jboss.classloading.spi.metadata.CapabilitiesMetaData;
import org.jboss.classloading.spi.metadata.ClassLoadingMetaData;
import org.jboss.classloading.spi.metadata.RequirementsMetaData;
@@ -100,6 +101,7 @@
OSGiBundleManager bundleManager = bundleState.getBundleManager();
OSGiClassLoadingMetaData classLoadingMetaData = new OSGiClassLoadingMetaData();
classLoadingMetaData.setName(bundleState.getSymbolicName());
classLoadingMetaData.setVersion(bundleState.getVersion());
classLoadingMetaData.setDomain(domain != null ? domain.getName() : null);
+ classLoadingMetaData.setShutdownPolicy(ShutdownPolicy.GARBAGE_COLLECTION);
In case you missed it:
http://community.jboss.org/thread/147089 http://community.jboss.org/thread/147089
http://community.jboss.org/thread/148829 http://community.jboss.org/thread/148829
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/534904#534904]
Start a new discussion in JBoss Microcontainer Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]