-
1. Re: ClassLoadingFactory and AbstractVFSDeployment
alesj Aug 28, 2009 5:12 AM (in response to heiko.braun)The code that sets CL to Module is not invoked in AbstractLevelClassLoaderSystemDeployer,
as you're bypassing it by providing your own CLF in AbstractClassLoaderDeployer.
You should bypass AEDeployer by providing proper filter in DU.
Similar to what we do here:<bean name="DeploymentProvidedDUFilter" class="org.jboss.deployment.DeploymentProvidedDeploymentUnitFilter" /> <bean name="GenScanDeployer" class="org.jboss.deployers.vfs.plugins.annotations.FilteredAnnotationEnvironmentDeployer"> <property name="filter"> <bean class="org.jboss.deployment.ListDeploymentUnitFilter"> <property name="filters"> <list> <inject bean="DeploymentProvidedDUFilter" /> <inject bean="JBossMetaDataDUFilter"/> <inject bean="ScanningMetaDataDUFilter"/> <inject bean="JBossCustomDeployDUFilter"/> </list> </property> </bean> </property> </bean>
DPDUF:
- http://anonsvn.jboss.org/repos/jbossas/branches/Branch_5_x/server/src/main/org/jboss/deployment/DeploymentProvidedDeploymentUnitFilter.java -
2. Re: ClassLoaderFactory and AbstractVFSDeployment
heiko.braun Aug 28, 2009 5:34 AM (in response to heiko.braun)Thanks for the quick response. Which deployer should I bypass by providing a filter? Looking at the xml example it seems to be a filter per deployer. But the DeploymentProvidedDeploymentUnitFilter is attached to the DU. I don't get it. How should the filter be assigned to skip certain deployers? Can you give me another example?
-
3. Re: ClassLoaderFactory and AbstractVFSDeployment
heiko.braun Aug 28, 2009 5:44 AM (in response to heiko.braun)OK, I get it. Since 5.1.0 it already configured to look for DeploymentUnitFilter attachments on the FilteredAnnotationEnvironmentDeployer. Makes sense. I'll give it try.