[jboss-jira] [JBoss JIRA] Created: (JBMICROCONT-100) LifecycleActions are not dispatched using the target ClassLoader
Scott M Stark (JIRA)
jira-events at jboss.com
Wed Aug 9 22:46:12 EDT 2006
LifecycleActions are not dispatched using the target ClassLoader
----------------------------------------------------------------
Key: JBMICROCONT-100
URL: http://jira.jboss.com/jira/browse/JBMICROCONT-100
Project: JBoss MicroContainer
Issue Type: Bug
Components: Kernel
Affects Versions: JBossMC_2_0_0M1
Reporter: Scott M Stark
For the pojoserver bootstrap work, I'm using a JMXKernel bean that uses a custom class loader which adds the jmx classes to the bean classpath:
<!-- Load the jboss jmx classes -->
<bean name="JMXClassLoader" class="org.jboss.vfs.classloading.VFSClassLoader">
<constructor factoryClass="org.jboss.vfs.classloading.VFSClassLoaderFactory"
factoryMethod="newClassLoader">
<parameter class="java.net.URL">${jboss.lib.url}</parameter>
<parameter>
<array class="[Ljava.lang.String;" elementClass="java.lang.String">
<value>dom4j.jar</value>
<value>jboss-j2se.jar</value>
<value>jboss-jmx.jar</value>
<value>jboss-mbeans.jar</value>
<value>jboss-system-jmx.jar</value>
</array>
</parameter>
<parameter><inject bean="MainDeployer" property="VFSFactory"/></parameter>
</constructor>
</bean>
<!-- A bean that setups a jboss-4.0.x type of jmx kernel to support the
the legacy mbean deployments handled by the SARDeployer
-->
<bean name="JMXKernel" class="org.jboss.system.server.jmx.JMXKernel">
<classloader><inject bean="JMXClassLoader"/></classloader>
<property name="serverImpl"><inject bean="org.jboss.system.server.Server"/></property>
</bean>
In the start method o the JMXKernel it is failing to create a MBeanServer instance because the thread context class loader is the ServerLoader NoAnnotationURLClassLoader rather than the JMXClassLoader instance.
I believe we need to be setting the bean ClassLoader somewhere along the dispatch path.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list