[jboss-dev-forums] [Design the new POJO MicroContainer] - Bean as a value to a deployment level classloader
adrian@jboss.org
do-not-reply at jboss.com
Wed Apr 4 10:05:22 EDT 2007
This test is failing because there is no "rewrite" of the ClassLoaderMetaData
to unwrap the embedded BeanMetaDataFactory.
| java.lang.IllegalStateException: Bean not found cl at state ControllerState at 120d62b{Installed}
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.getControllerContext(MicrocontainerTestDelegate.java:152)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.getBean(MicrocontainerTestDelegate.java:125)
| at org.jboss.test.kernel.junit.MicrocontainerTest.getBean(MicrocontainerTest.java:93)
| at org.jboss.test.kernel.junit.MicrocontainerTest.getBean(MicrocontainerTest.java:80)
| at org.jboss.test.kernel.deployment.test.BeanMetaDataWithClassloaderTestCase.testBeanAsValueMetaData(BeanMetaDataWithClassloaderTestCase.java:48)
|
i.e. replace
| <classloader>
| <bean name="cl" class="org.jboss.test.kernel.deployment.support.NullClassLoader" />
| </classloader>
|
with
| <classloader>
| <inject bean="cl"/>
| </classloader>
|
| <bean name="cl" class="org.jboss.test.kernel.deployment.support.NullClassLoader" />
|
This needs to get done somewhere in AbstractKernelDeployer.deployBeans()
with deployBean() using any modified version.
We don't want to modify the ClassLoaderMetaData set on the deployment by the user!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034576#4034576
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034576
More information about the jboss-dev-forums
mailing list