[Design the new POJO MicroContainer] - beanfactory injection
by scott.stark@jboss.org
The org.jboss.test.kernel.deployment.test.BeanContainerUsageTestCase which has this xml deployment:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
| xmlns="urn:jboss:bean-deployer">
|
| <beanfactory name="Bean1TypeFactory" class="org.jboss.test.kernel.deployment.support.container.Bean1Type"/>
| <bean name="Bean1TypePool" class="org.jboss.test.kernel.deployment.support.container.BeanPool">
| <property name="factory"><inject name="Bean1TypeFactory"/></property>
| </bean>
| <bean name="BeanContainer1Type" class="org.jboss.test.kernel.deployment.support.container.BeanContainer">
| <property name="pool"><inject name="Bean1TypePool"/></property>
| </bean>
| <beanfactory name="Bean2TypeFactory" class="org.jboss.test.kernel.deployment.support.container.Bean2Type">
| <property name="bean1"><value-factory bean="Bean1TypeFactory" method="createBean" /></property>
| </beanfactory>
| <bean name="Bean2TypePool" class="org.jboss.test.kernel.deployment.support.container.BeanPool">
| <property name="factory"><inject name="Bean2TypeFactory"/></property>
| </bean>
| <bean name="BeanContainer2Type" class="org.jboss.test.kernel.deployment.support.container.BeanContainer">
| <property name="pool"><inject name="Bean2TypePool"/></property>
| </bean>
|
| </deployment>
|
is failing because of a class dependency on the org.jboss.beans.metadata.spi.factory.BeanFactory type being injected into the bean pool:
| java.lang.IllegalStateException: Incompletely deployed:
|
| *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
| Bean2TypePool -> interface org.jboss.beans.metadata.spi.factory.BeanFactory{Installed:** NOT FOUND **}
|
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:177)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.validate(MicrocontainerTestDelegate.java:262)
| at org.jboss.test.kernel.junit.MicrocontainerTest.afterSetUp(MicrocontainerTest.java:98)
| at org.jboss.test.kernel.junit.MicrocontainerTest.setUp(MicrocontainerTest.java:83)
|
I assume its because there is a failure to understand that Bean1TypeFactory provides the BeanFactory?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138492#4138492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138492
18 years
[Design of Management Features on JBoss] - java.lang.IllegalStateException: Channel id map for node 210
by ambika
Hi,
I am trying to start three different JBoss nodes in three different clusters.
I have started first node successfully with the default value of the ServerPeerID=0. when i tried to start the second node, it failed because there was already one node with the ServerPeerID=0. With one of the discussions, i got the solution that, i need to change the ServerPeerID value to ${jboss.messaging.serverpeerid:0), second node started sucessfully.
I am facing the problem while starting the third node. Above solution dint worked. So i keep on giving different integer values to the ServerPeerID. For each value its popping up the save error messages.
java.lang.IllegalStateException: Channel id map for node 21000 already contains binding for queue 16
2008-03-24 10:47:22,668 ERROR [org.jboss.messaging.util.ExceptionUtil] Queue[null, name=testDistributedQueue] startService
java.lang.IllegalStateException: Channel id map for node 21000 already contains binding for queue 16
at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.addBindingInMemory(MessagingPostOffice.java:2375)
at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.internalAddBinding(MessagingPostOffice.java:1863)
at org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.addBinding(MessagingPostOffice.java:444)
at org.jboss.jms.server.destination.QueueService.startService(QueueService.java:110)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
I have tried with many random integer values, but no use. Do i need to modify any other files? Please help me regarding this issue.
Thanks in Advance.
Ambika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138486#4138486
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138486
18 years