I don't understand what problem you are trying to solve?
Are you talking about the bit that overrides the ClassLoaderFactory
or something else?
In practice, we should be able to use the new ClassLoader for web-apps.
What's missing is a generic way to say that a subdeployment (e.g. a war in an ear)
wants its own classloader (based on the top level classloader)
so the classes in its "classpath" are not visible to other parts of the deployment.
This should be a choice in the StructureMetaData that is used
to build the DeploymentContext.
We can then have a "SubDeploymentClassloaderDeployer" that overrides
the specific unit classloader with the classloader described above.
I imagine this is related to what Ales is seeing with Seam, in that the
the classpath of the war is being built into both the top level and WAR classloader?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123259#4123259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123259
removeComponent doesn't seem to be working for me, I get no exceptions or anything, but the backing xml file hasn't changed in anyway.
OK, it is possible that the ProfileServiceUnitTestCase is reporting a false positive, because it just calls removeComponent but does no assertions or try to check to make sure that the component is truly gone.
No exceptions are occuring, but I am noticing that the component's xml file still exists.
OK, so looking at the ManagedDeploymentImpl class the removeComponent method just removes the ManagedComponent from the Map. How does this remove get filtered down to the actual deployment file?
Am I missing some other api that actually will remove the resource?
Thanks
Mark Spritzler
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123201#4123201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123201
Its manual as just a subset of the artifacts go into the jboss repo. Here is a sh script I have used to copy the artifacts from the maven repo into the jboss repo microcontainer/lib directory for a release.
| [starksm@succubus jbossmc]$ cat ../install.sh
| #!/bin/sh
|
| VER=2.0.0.Beta10
| M2=/home/svn/repository.jboss.com/maven2/org/jboss/microcontainer
| JBOSS=/home/svn/repository.jboss.com/jboss/microcontainer
| JARS="jboss-aop-mc-int jboss-classloader jboss-container jboss-container-metadata jboss-container-metadata-spi jboss-dependency jboss-deployers-client jboss-deployers-client-spi jboss-deployers-core jboss-deployers-core-spi jboss-deployers-impl jboss-deployers-spi jboss-deployers-structure-spi jboss-deployers-vfs jboss-deployers-vfs-spi jboss-kernel jboss-managed jboss-metatype"
|
| mkdir $JBOSS/$VER
| mkdir $JBOSS/$VER/lib
| for j in $JARS
| do
| jar=`find $M2 -name $j-${VER}.jar`
| if [ -n $jar ]
| then
| cp $jar $JBOSS/$VER/lib/$j.jar
| fi
| sjar=`find $M2 -name $j-${VER}-sources.jar`
| if [ -n $sjar ]
| then
| cp $sjar $JBOSS/$VER/lib/${j}-sources.jar
| fi
| done
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123190#4123190
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123190