Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 86229 invoked from network); 1 Nov 2006 01:11:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 01:11:23 -0000 Received: (qmail 41181 invoked by uid 500); 1 Nov 2006 01:11:34 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 41169 invoked by uid 500); 1 Nov 2006 01:11:34 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 41153 invoked by uid 99); 1 Nov 2006 01:11:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 17:11:34 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 17:11:21 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gf4dA-0004qN-Ii for activemq-users@geronimo.apache.org; Tue, 31 Oct 2006 17:11:00 -0800 Message-ID: <7106388.post@talk.nabble.com> Date: Tue, 31 Oct 2006 17:11:00 -0800 (PST) From: ming616 To: activemq-users@geronimo.apache.org Subject: Re: AW: Another problem? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ming616@gmail.com References: <7087005.post@talk.nabble.com> <7C36DCD0D35F9A4A8D89A7A8916E755D4E13E0@GAIA-SERVER.gaia-group.local> <7090983.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thank you,James. I sloved this problem with your help. Thank you again! :) James.Strachan wrote: > > what does your activemq.xml look like? It can't be the one you quote > as taht doesn't contain a bean named 'default' > > On 10/31/06, ming616 wrote: >> >> I don't think so. Now it's to be another problem. >> This is my applicationContext.xml >> >> > 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"> >> > id="springBrokerId" >> class="org.apache.activemq.xbean.BrokerFactoryBean"> >> > name="config" >> value="classpath:activemq.xml" /> >> > name="start" >> value="true" /> >> >> >> >> 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 >> [org.springframework.context.support.DelegatingMessageSource@1006d75] >> [ClassPathXmlApplicationContext] INFO : Unable to locate >> ApplicationEventMulticaster with name 'applicationEventMulticaster': >> using >> default >> [org.springframework.context.event.SimpleApplicationEventMulticaster@bb7465] >> [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. >> >> > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > -- View this message in context: http://www.nabble.com/Another-problem--tf2543468.html#a7106388 Sent from the ActiveMQ - User mailing list archive at Nabble.com.