From dev-return-20890-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Mon Jun 28 07:28:28 2010 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 31727 invoked from network); 28 Jun 2010 07:28:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 07:28:28 -0000 Received: (qmail 97239 invoked by uid 500); 28 Jun 2010 07:28:28 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 97039 invoked by uid 500); 28 Jun 2010 07:28:26 -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 97031 invoked by uid 99); 28 Jun 2010 07:28:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 07:28:24 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.70.178.78] (HELO mrelay4-v.mgt.gandi.net) (217.70.178.78) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 07:28:14 +0000 X-Originating-IP: 217.70.178.42 Received: from mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.42]) by mrelay4-v.mgt.gandi.net (Postfix) with ESMTP id 64778BA2E; Mon, 28 Jun 2010 09:27:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter2-d.gandi.net Received: from mrelay4-v.mgt.gandi.net ([217.70.178.78]) by mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.42]) (amavisd-new, port 10024) with ESMTP id H6cOIeR7hbM6; Mon, 28 Jun 2010 09:27:42 +0200 (CEST) X-Originating-IP: 94.103.140.2 Received: from [192.168.35.66] (unknown [94.103.140.2]) (Authenticated sender: jb@nanthrax.net) by mrelay4-v.mgt.gandi.net (Postfix) with ESMTPSA id A9C3CBA30; Mon, 28 Jun 2010 09:27:41 +0200 (CEST) Message-ID: <4C284EEC.5070207@nanthrax.net> Date: Mon, 28 Jun 2010 09:27:40 +0200 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= Reply-To: jb@nanthrax.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: dev@activemq.apache.org CC: dev@servicemix.apache.org Subject: OSGi dependency in ActiveMQ 5.3.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, as you know, ActiveMQ is used in ServiceMix as default message broker. ServiceMix 3.3.x uses Spring configuration and loads the ActiveMQ bean in activemq.xml Spring file: Up to ActiveMQ 5.3.1, we didn't encounter any issue with that. But now, I updated ServiceMix 3.3.x to use ActiveMQ 5.3.2 and I got the following at startup: Caught: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in class path resource [activemq.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.xbean.XBeanBrokerService]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/osgi/framework/BundleException It looks like ActiveMQ 5.3.2 bean now have a dependency to OSGi framework. As ServiceMix 3.3.x doesn't use OSGi at all (pure Spring), I'm not very pleased to add OSGi framework in the distribution classpath. Moreover, for ActiveMQ, I think that this dependency is not very flexible for users that use ActiveMQ "outside" OSGi. Is it possible to define this dependency as an optional one ? What do you think ? FYI, I raise the following Jira task about this: https://issues.apache.org/activemq/browse/SM-1958 Thanks Regards JB