Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 219BB174BB for ; Thu, 10 Sep 2015 21:33:32 +0000 (UTC) Received: (qmail 45281 invoked by uid 500); 10 Sep 2015 21:33:31 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 45235 invoked by uid 500); 10 Sep 2015 21:33:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 45223 invoked by uid 99); 10 Sep 2015 21:33:31 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2015 21:33:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0DCAF1A0CD8 for ; Thu, 10 Sep 2015 21:33:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.171 X-Spam-Level: ***** X-Spam-Status: No, score=5.171 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.958] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id exZhn7lxdEK2 for ; Thu, 10 Sep 2015 21:33:21 +0000 (UTC) Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id BF593201FB for ; Thu, 10 Sep 2015 21:33:20 +0000 (UTC) Received: by qgev79 with SMTP id v79so47591361qge.0 for ; Thu, 10 Sep 2015 14:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YTJRrUgovAjanwr9Wn3JTebDwvsQkSru9AO2LcixDJ0=; b=FFByXo5bLPFYZzh5mQJA6tgHoWbBQCWTq45SJQnjxwrSPoSJk9n4R/ICtS1b4CFhZU ApXqxvGeMv6YMH30J6lfRn6Lq+xxgLFjhbCn37+xarNn9Bi2MS9HP6CisGWzaagCwI5h VC3kS9dIlJqkhdiQsa6RE7yVvF9RBIgHxdJPgGREo3DCyd3HJJCzra/Rbt9Nir6jwkG8 SDgM5blMzZHiYN4PCgKchutSyFn/BK3hRem6SMNYdA5Xd2v+Wj0hIHABajcRjbKPstP3 u+s1jrW+ps9kUHKKdLJsNoSe17QZlRmcwve8r2HrYYa644QbePg8Qlv7+bSJcHkCMoTo pZwg== X-Received: by 10.140.201.66 with SMTP id w63mr61822929qha.36.1441920799899; Thu, 10 Sep 2015 14:33:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.31.26 with HTTP; Thu, 10 Sep 2015 14:32:50 -0700 (PDT) In-Reply-To: <1441920072623-4701883.post@n4.nabble.com> References: <1441920072623-4701883.post@n4.nabble.com> From: Christopher Shannon Date: Thu, 10 Sep 2015 17:32:50 -0400 Message-ID: Subject: Re: ActiveMQ JDBC persistence with MSSql To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a114338d612857b051f6b59eb --001a114338d612857b051f6b59eb Content-Type: text/plain; charset=UTF-8 The class can't be found because it isn't part of dbcp 2. org.apache.commons.dbcp.BasicDataSource is the package for dbcp 1.x not 2.x Take a look at: https://commons.apache.org/proper/commons-dbcp/apidocs/org/apache/commons/dbcp2/BasicDataSource.html You should be using org.apache.commons.dbcp2.BasicDataSource if you want to use dbcp2 -Chris On Thu, Sep 10, 2015 at 5:21 PM, mtod wrote: > I'm trying to setup a MSSQL JDBC persistence and I keep getting the same > error. > > My setup is ActiveMQ 5.12.0 on Windows 2012 R2 with JAVA 1.8 > > I downloaded and installed the MS Drivers. > > *My ActiveMQ.xml is using the default and the only thing I added was :* > > > destroy-method="close"> > value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> > > value="jdbc:sqlserver://dbdev003.corp.local:1433;databaseName=ActiveMQJournal;user=srv_activemqDEV;password=srv_activemqDEV1"/> > > > > > > *Console Error:* > > ERROR: *org.springframework.beans.factory.CannotLoadBeanClassException: > Cannot find class [org.apache.commons.dbcp.BasicDataSource]* for bean with > name 'mssql-ds' defined in class path resource [activemq.xml > ]; nested exception is java.lang.ClassNotFoundException: > org.apache.commons.dbcp.BasicDataSource > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find > class [org.apache.commons.dbcp.BasicDataSource] for bean with name > 'mssql-ds' defined in class path resource [activemq.xml]; nest > ed exception is java.lang.ClassNotFoundException: > org.apache.commons.dbcp.BasicDataSource > > > I tried placing the commons-dbcp2-2.1 into the /lib folder and no luck same > with the drivers. > > Thanks > > Mike > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ActiveMQ-JDBC-persistence-with-MSSql-tp4701883.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a114338d612857b051f6b59eb--