Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 52143 invoked from network); 8 Aug 2008 03:09:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2008 03:09:00 -0000 Received: (qmail 99218 invoked by uid 500); 8 Aug 2008 03:08:59 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 99203 invoked by uid 500); 8 Aug 2008 03:08:59 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 99192 invoked by uid 99); 8 Aug 2008 03:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 20:08:59 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2008 03:08:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KRIL7-0002Dd-Tp for users@openejb.apache.org; Thu, 07 Aug 2008 20:08:29 -0700 Message-ID: <18884422.post@talk.nabble.com> Date: Thu, 7 Aug 2008 20:08:29 -0700 (PDT) From: rde8026 To: users@openejb.apache.org Subject: Re: Configure OpenEJB Container to use external activemq.xml file In-Reply-To: <041A21C5-3EFA-4973-9662-0B020390CAB1@visi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: rde8026@gmail.com References: <18858260.post@talk.nabble.com> <18870919.post@talk.nabble.com> <041A21C5-3EFA-4973-9662-0B020390CAB1@visi.com> X-Virus-Checked: Checked by ClamAV on apache.org I gave that a go and here is the error message: org.apache.openejb.OpenEJBException: javax.resource.spi.ResourceAdapterInternalException: Failed to startup an embedded broker: openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false, due to: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested exception is java.io.FileNotFoundException: class path resource [(file:///D:opt/openejb-3.0/lib/] cannot be resolved to URL because it does not exist: Failed to startup an embedded broker: openejb:xbean:(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false, due to: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern [(file:///D:opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested exception is java.io.FileNotFoundException: class path resource [(file:///D:opt/openejb-3.0/lib/] Seems this doesn't want to work! I've attached my activemq.xml file here. Thanks for your help so far - its much appreciated... http://www.nabble.com/file/p18884422/activemq.xml activemq.xml . Thx, RE David Blevins wrote: > > > On Aug 7, 2008, at 6:48 AM, rde8026 wrote: > >> >> Hi David, >> >> Thanks for the reply. I've tried using the fully qualified path and >> I get >> the same exception - >> >> Failed to startup an embedded broker: >> openejb:xbean:(D:/opt/openejb-3.0/lib/activemq.xml)? >> persistent=false, due >> to: org.springframework.beans.factory.BeanDefinitionStoreException: >> Could >> not resolve bean definition resource pattern >> [(D:/opt/openejb-3.0/lib/activemq.xml)?persistent=false]; nested >> exception >> is java.io.FileNotFoundException: class path resource >> [(D:/opt/openejb-3.0/lib/] cannot be resolved to URL because it does >> not >> exist >> >> I'm curious do you know if anyone has successfully gotten this to >> work or is >> it a bug? Any ideas would be much appreciated. > > I think I've tried this before, but I could be imagining things. > Looking at the exception though, it seems that we might need to make > the path a valid URL. Try this one: > > file:///D:/opt/openejb-3.0/lib/activemq.xml > > If that doesn't work, post your activemq.xml (or some version of it) > and I'll give it a try. > > If that *does* work, then we can add examples as well as wrap this > activemq functionality with something that tries harder to make things > work and gives a better error message when they can't. > > -David > > >> David Blevins wrote: >>> >>> >>> On Aug 6, 2008, at 12:47 PM, rde8026 wrote: >>> >>>> >>>> I've been trying to get the openEJB container to allow me to use an >>>> external >>>> activemq.xml file for a while now and have been unsuccessful. Below >>>> is my >>>> resource config >>>> >>>> >>>> # Broker configuration URI as defined by ActiveMQ >>>> # see http://activemq.apache.org/broker-configuration-uri.html >>>> >>>> #BrokerXmlConfig broker:(tcp://localhost:61616)?useJmx=false >>>> BrokerXmlConfig xbean:activemq.xml >>>> >>>> # Broker address >>>> >>>> #ServerUrl vm://localhost?async=true >>>> ServerUrl tcp://localhost:61616 >>>> >>>> # DataSource for persistence messages >>>> >>>> DataSource MessageDataStore >>>> >>>> >>>> With the activemq.xml file placed in the lib directory >>> >>> Hmmm... Try using an absolute path to the activemq.xml file and see >>> if that doesn't make activemq happier. >>> >>> Not sure if that will work, but worth a try. >>> >>> -David >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18870919.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> > > > -- View this message in context: http://www.nabble.com/Configure-OpenEJB-Container-to-use-external-activemq.xml-file-tp18858260p18884422.html Sent from the OpenEJB User mailing list archive at Nabble.com.