-
1. Re: Booting up JBoss CL in VDF
wolfc Dec 23, 2009 8:22 AM (in response to wolfc)Next stop is a shortcoming in AbstractLevelClassLoaderSystemDeployer:
java.lang.NullPointerException
at org.jboss.deployers.plugins.classloading.AbstractLevelClassLoaderSystemDeployer.createClassLoader(AbstractLevelClassLoaderSystemDeployer.java:111)
at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.createClassLoader(AbstractDeploymentContext.java:568)
... 41 moreBasically you must have a Module attachment.
This one comes from an AbstractClassLoaderDescribeDeployer of which we have one called VFSClassLoaderDescribeDeployer.
So:
<bean name="ClassLoaderDescribeDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer">
<property name="classLoading"><inject bean="ClassLoading"/></property>
</bean> -
2. Re: Booting up JBoss CL in VDF
wolfc Dec 23, 2009 8:27 AM (in response to wolfc)How do I delete this post?Message was edited by: Carlo de Wolf
-
3. Re: Booting up JBoss CL in VDF
wolfc Dec 23, 2009 8:26 AM (in response to wolfc)But to create the Module we must have the associated metadata:
java.lang.IllegalArgumentException: Null classLoading metadata
at org.jboss.classloading.spi.dependency.helpers.ClassLoadingMetaDataModule.determineName(ClassLoadingMetaDataModule.java:56)
at org.jboss.classloading.spi.dependency.helpers.ClassLoadingMetaDataModule.<init>(ClassLoadingMetaDataModule.java:82)
at org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule.<init>(ClassLoaderPolicyModule.java:77)
at org.jboss.deployers.plugins.classloading.AbstractDeploymentClassLoaderPolicyModule.<init>(AbstractDeploymentClassLoaderPolicyModule.java:120)
at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.<init>(VFSDeploymentClassLoaderPolicyModule.java:72)
at org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer.createModule(VFSClassLoaderDescribeDeployer.java:40)Which for the moment we'll provide with the ClassLoadingDefaultDeployer:
<bean name="ClassLoadingDefaultDeployer" class="org.jboss.deployers.plugins.classloading.ClassLoadingDefaultDeployer">
<property name="defaultMetaData">
<classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY" import-all="true"/>
</property>
</bean>And voila VDF with JBoss CL.
Note that parsing classloading metadata is disabled in this setup.