I ' m wondering if your problem comes from the activemq.xml configuration file.
Do you have a reference to a bean named broker in this file ?

Cheers,
Guillaume Nodet

On 4/7/06, Charlesh <[EMAIL PROTECTED]> wrote:
>
> I have following servicemix.xml:
>
> <?xml version='1.0' encoding='ISO-8859-1' ?>
> <beans xmlns:spring="http://xbean.org/schemas/spring/1.0";
> xmlns:sm="http://servicemix.apache.org/config/1.0";
> xmlns:integrator-httpserver="http://integrator.neogrid.com.br/config/5.0/integrator-httpserver";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://xbean.org/schemas/spring/1.0";
> xsi:schemaLocation="http://xbean.org/schemas/spring/1.0 spring-beans.xsd
> http://servicemix.apache.org/config/1.0 servicemix.xsd">
>   <sm:container name="jbi" installationDirPath="./install" flowName="jms"
> dumpStats="true" transactionManager="#transactionManager"
> xmlns:sm="http://servicemix.apache.org/config/1.0"; spring:id="jbi"
> deploymentDirPath="./deploy" MBeanServer="#mbeanServer" rootDir="../server"
> statsInterval="10">
>     <sm:activationSpecs xmlns:sm="http://servicemix.apache.org/config/1.0";>
>
>
>       <sm:activationSpec name="Recebe"
> service="http://integrator.neogrid.com.br/Recebe";
> xmlns:sm="http://servicemix.apache.org/config/1.0";
> failIfNoDestinationEndpoint="false">
>         <sm:component xmlns:sm="http://servicemix.apache.org/config/1.0";>
>           <integrator-component-binding-file:FILEReceiver
> DIRECTORY="C:/temp/neogrid/in" DELETEFILE="true" period="60000"
> spring:id="Recebe" enabled="true" errorInterval="600000"
> xmlns:integrator-component-binding-file="http://integrator.neogrid.com.br/config/5.0/integrator-component-binding-file"/>
>         </sm:component>
>       </sm:activationSpec>
>
>       <sm:activationSpec name="Envia"
> service="http://integrator.neogrid.com.br/Envia";
> failIfNoDestinationEndpoint="false">
>         <sm:component>
>           <integrator-component-binding-file:FILESender
> DIRECTORY="C:/temp/neogrid/out" APPEND="false" spring:id="Envia" retry="3"
> errorInterval="5000"
> xmlns:integrator-component-binding-file="http://integrator.neogrid.com.br/config/5.0/integrator-component-binding-file"/>
>         </sm:component>
>         <sm:subscriptions>
>           <sm:subscriptionSpec
> service="http://integrator.neogrid.com.br/Recebe"/>
>         </sm:subscriptions>
>       </sm:activationSpec>
>
>
>     </sm:activationSpecs>
>   </sm:container>
>   <bean id="transactionContextManager"
> class="org.jencks.factory.TransactionContextManagerFactoryBean"/>
>   <bean id="transactionManager"
> class="org.jencks.factory.GeronimoTransactionManagerFactoryBean"/>
>   <bean id="mbeanServer"
> class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
>   <bean init-method="start" id="registry"
> class="mx4j.tools.naming.NamingService">
>     <property name="port" value="1099"/>
>   </bean>
>   <bean id="serverConnector" depends-on="registry"
> class="org.springframework.jmx.support.ConnectorServerFactoryBean">
>     <property name="objectName" value="connector:name=rmi"/>
>     <property name="serviceUrl"
> value="service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"/>
>     <property name="threaded" value="true"/>
>     <property name="daemon" value="true"/>
>     <property name="environment">
>       <map/>
>     </property>
>   </bean>
>   <bean id="broker" depends-on="mbeanServer"
> class="org.apache.activemq.xbean.BrokerFactoryBean">
>     <property name="config" value="classpath:activemq.xml"/>
>   </bean>
>   <bean id="jmsFactory"
> class="org.apache.activemq.pool.PooledConnectionFactory">
>     <property name="connectionFactory">
>       <bean class="org.apache.activemq.ActiveMQConnectionFactory">
>         <property name="brokerURL" value="tcp://localhost:61616"/>
>       </bean>
>     </property>
>   </bean>
>   <bean id="listner"
> class="com.neogrid.integrator.httpserver.listeners.SimpleHTTPListener">
>     <property name="host">
>       <value>localhost</value>
>     </property>
>     <property name="port">
>       <value>80</value>
>     </property>
>   </bean>
>   <bean id="deploy"
> class="com.neogrid.integrator.httpserver.deployunits.ServletDeployUnit">
>     <property name="enabled">
>       <value>true</value>
>     </property>
>     <property name="servletName">
>       <value>NeoGridHTTPChannel</value>
>     </property>
>     <property name="servletClass">
>       <value>com.neogrid.integrator.httpserver.MyServlet</value>
>     </property>
>     <property name="servletPath">
>       <value>/</value>
>     </property>
>   </bean>
>   <bean id="httpserver"
> class="com.neogrid.integrator.httpserver.JettyHTTPServer">
>     <property name="listeners">
>       <ref bean="listner"/>
>     </property>
>     <property name="deployUnits">
>       <ref bean="deploy"/>
>     </property>
>   </bean>
> </beans>
>
>
>
> Run ServiceMix occurs the error:
>
> [07/Apr/2006 15:08:31:999] [org.apache.activemq.xbean.BrokerFactoryBean] No
> bean named broker available:
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'broker' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [org.apache.activemq.xbean.XBeanBrokerService]; root of
> BeanFactory hierarchy
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'broker' is defined:
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> defining beans [org.apache.activemq.xbean.XBeanBrokerService]; root of
> BeanFactory hierarchy
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
>         at
> org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:79)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:342)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.isBeanTypeMatch(DefaultListableBeanFactory.java:249)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:144)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:198)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:192)
>         at
> org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:606)
>         at
> org.jencks.factory.GeronimoTransactionManagerFactoryBean.getTransactionContextManager(GeronimoTransactionManagerFactoryBean.java:69)
>         at
> org.jencks.factory.GeronimoTransactionManagerFactoryBean.getObject(GeronimoTransactionManagerFactoryBean.java:47)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForSharedInstance(AbstractBeanFactory.java:806)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:235)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
>         at
> org.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158)
>         at
> org.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:58)
>         at
> com.neogrid.integrator.spring.IntegratorClassPathXmlApplicationContext.<init>(IntegratorClassPathXmlApplicationContext.java:25)
>         at com.neogrid.integrator.Bootstrap.<init>(Bootstrap.java:34)
>         at com.neogrid.integrator.Bootstrap.main(Bootstrap.java:51)
> [07/Apr/2006 15:08:32:124]
> [org.apache.servicemix.jbi.management.ManagementContext] Registering system
> service:
> org.apache.servicemix:ContainerName=jbi,Type=SystemService,Name=ManagementContext
> [07/Apr/2006 15:08:32:265]
> [org.apache.servicemix.jbi.management.ManagementContext] Registering system
> service:
> org.apache.servicemix:ContainerName=jbi,Type=SystemService,Name=EnvironmentContext
> [07/Apr/2006 15:08:32:281]
> [org.apache.servicemix.jbi.management.ManagementContext] Registering system
> service:
> org.apache.servicemix:ContainerName=jbi,Type=SystemService,Name=Registry
> [07/Apr/2006 15:08:32:296]
> [org.apache.servicemix.jbi.management.ManagementContext] Registering system
> service:
> org.apache.servicemix:ContainerName=jbi,Type=SystemService,Name=Broker
> [07/Apr/2006 15:08:32:327] [org.apache.servicemix.jbi.nmr.flow.jms.JMSFlow]
> jbi: Initializing jms flow
>
>
> What this causing this error?
>
> Thanks!
>
> --
> View this message in context: 
> http://www.nabble.com/No-bean-named-broker-available-t1413643.html#a3809036
> Sent from the ServiceMix - Dev forum at Nabble.com.
>
>

Reply via email to