Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 14051 invoked from network); 17 Apr 2009 15:41:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Apr 2009 15:41:46 -0000 Received: (qmail 76634 invoked by uid 500); 17 Apr 2009 15:40:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 75909 invoked by uid 500); 17 Apr 2009 15:40:12 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 74972 invoked by uid 99); 17 Apr 2009 15:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 15:37:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2009 15:37:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E9709234C044 for ; Fri, 17 Apr 2009 08:37:31 -0700 (PDT) Message-ID: <979095135.1239982651952.JavaMail.jira@brutus> Date: Fri, 17 Apr 2009 08:37:31 -0700 (PDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2212) RAR on Weblogic: embedded broker fails to start with : org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [broker-config.xml]; nested exception is java.io.FileNotFoundException: class In-Reply-To: <37534032.1239981032828.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-2212. ----------------------------- Resolution: Fixed r766053 verified on jboss5 and weblogic10 Added log4j.properties to the rar so that info/errors appear on weblogic console now that log4j is configured for the RAR. Reduced the complexity of the embedded broker-config and suppressed the use of shutdownHook as the RAR classes are not available to the shutdown handler. ActiveMQ is terminated by the RAR lifecycle just fine. > RAR on Weblogic: embedded broker fails to start with : org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [broker-config.xml]; nested exception is java.io.FileNotFoundException: class > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2212 > URL: https://issues.apache.org/activemq/browse/AMQ-2212 > Project: ActiveMQ > Issue Type: Bug > Components: JCA Container > Affects Versions: 5.2.0 > Reporter: Gary Tully > Assignee: Gary Tully > Fix For: 5.3.0 > > > {code} > > The ra.xml class 'org.apache.activemq.ra.ActiveMQResourceAdapter' should implement java.io.Serializable but does not.> > 2009-04-16 22:23:26,074 [ (self-tuning)'] DEBUG ActiveMQResourceAdapter - setting [password] property > 2009-04-16 22:23:26,074 [ (self-tuning)'] DEBUG ActiveMQResourceAdapter - setting [useInboundSession] to: false > 2009-04-16 22:23:26,075 [ (self-tuning)'] DEBUG ActiveMQResourceAdapter - setting [serverUrl] to: tcp://localhost:61616 > 2009-04-16 22:23:26,075 [ (self-tuning)'] DEBUG ActiveMQResourceAdapter - setting [userName] to: defaultUser > > 2009-04-16 22:23:26,432 [ActiveMQ Broker] DEBUG XBeanBrokerFactory - Now attempting to figure out the type of resource: broker-config.xml > 2009-04-16 22:23:26,679 [ActiveMQ Broker] INFO ResourceXmlApplicationContext - Refreshing org.apache.xbean.spring.context.ResourceXmlApplicationContext@22886042: display name [org.apache.xbean.spring.context.ResourceXmlApplicationContext@22886042]; startup date [Thu Apr 16 22:23:26 IST 2009]; root of context hierarchy > 2009-04-16 22:23:27,409 [ActiveMQ Broker] INFO XBeanXmlBeanDefinitionReader - Loading XML bean definitions from class path resource [broker-config.xml] > 2009-04-16 22:23:27,416 [ActiveMQ Broker] WARN ActiveMQResourceAdapter - Could not start up embeded ActiveMQ Broker 'xbean:broker-config.xml': IOException parsing XML document from class path resource [broker-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [broker-config.xml] cannot be opened because it does not exist > 2009-04-16 22:23:27,450 [ActiveMQ Broker] DEBUG ActiveMQResourceAdapter - Reason for: IOException parsing XML document from class path resource [broker-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [broker-config.xml] cannot be opened because it does not exist > org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [broker-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [broker-config.xml] cannot be opened because it does not exist > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349) > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) > at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111) > at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104) > at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) > at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) > at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:64) > at org.apache.xbean.spring.context.ResourceXmlApplicationContext.(ResourceXmlApplicationContext.java:52) > at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96) > at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52) > at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) > at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) > at org.apache.activemq.ra.ActiveMQResourceAdapter$1.run(ActiveMQResourceAdapter.java:78) > Caused by: java.io.FileNotFoundException: class path resource [broker-config.xml] cannot be opened because it does not exist > at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142) > at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) > ... 13 more > 2009-04-16 22:23:27,468 [ (self-tuning)'] DEBUG tiveMQManagedConnectionFactory - copying standard ResourceAdapter configuration properties > 2009-04-16 22:23:27,468 [ (self-tuning)'] DEBUG tiveMQManagedConnectionFactory - setting [clientid] to: null > 2009-04-16 22:23:27,468 [ (self-tuning)'] DEBUG tiveMQManagedConnectionFactory - setting [password] property > 2009-04-16 22:23:27,468 [ (self-tuning)'] DEBUG tiveMQManagedConnectionFactory - setting [serverUrl] to: tcp://localhost:61616 > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.