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/148829