I don't think so. Now it's to be another problem.
This is my applicationContext.xml

<beans
        xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd";>
        <bean
                id="springBrokerId"
                class="org.apache.activemq.xbean.BrokerFactoryBean">
                <property
                        name="config"
                        value="classpath:activemq.xml" />
                <property
                        name="start"
                        value="true" />
        </bean>
</beans>

The activemq.xml is the
https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq.xml
But  the problem is 
[ClassPathXmlApplicationContext] INFO : Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=24212267]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [springBrokerId]; root of BeanFactory hierarchy
[ClassPathXmlApplicationContext] INFO : 1 beans defined in application
context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=24212267]
[ClassPathXmlApplicationContext] INFO : Unable to locate MessageSource with
name 'messageSource': using default
[EMAIL PROTECTED]
[ClassPathXmlApplicationContext] INFO : Unable to locate
ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default
[EMAIL PROTECTED]
[DefaultListableBeanFactory] INFO : Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [springBrokerId]; root of BeanFactory hierarchy]
[XBeanXmlBeanDefinitionReader] INFO : Loading XML bean definitions from
class path resource [activemq.xml]
[DefaultListableBeanFactory] INFO : Destroying singletons in
{org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans [springBrokerId]; root of BeanFactory hierarchy}
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'springBrokerId' defined in class path resource
[applicationContext.xml]: Invocation of init method failed; nested exception
is org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Bean name 'default' is already used in this file.
Offending resource: class path resource [activemq.xml]
Caused by:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Bean name 'default' is already used in this file.
Offending resource: class path resource [activemq.xml]
        at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:57)
        at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:64)
        at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:55)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.checkNameUniqueness(BeanDefinitionParserDelegate.java:452)
        at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:418)
        at
org.apache.xbean.spring.context.v2c.XBeanNamespaceHandler.parseBeanFromExtensionElement(XBeanNamespaceHandler.java:208)




-- 
View this message in context: 
http://www.nabble.com/Another-problem--tf2543468.html#a7090983
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to