Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 87238 invoked from network); 15 Jan 2009 19:25:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2009 19:25:07 -0000 Received: (qmail 91954 invoked by uid 500); 15 Jan 2009 19:25:05 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91938 invoked by uid 500); 15 Jan 2009 19:25:05 -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 91926 invoked by uid 99); 15 Jan 2009 19:25:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2009 11:25:05 -0800 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; Thu, 15 Jan 2009 19:24:57 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LNXpU-0002QV-IB for users@activemq.apache.org; Thu, 15 Jan 2009 11:24:36 -0800 Message-ID: <21484983.post@talk.nabble.com> Date: Thu, 15 Jan 2009 11:24:36 -0800 (PST) From: anan12 To: users@activemq.apache.org Subject: Re: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' caused by java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver In-Reply-To: <7b3355cb0901151110x72901228x7527a623511490cd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pavan.anantha@qwest.com References: <21484553.post@talk.nabble.com> <7b3355cb0901151110x72901228x7527a623511490cd@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks Bruce, It worked after placing the jar file in Activemq's lib directory. I was wondering why it didn't see when it has been specified in the classpath. Thanks again, Pavan bsnyder wrote: > > On Thu, Jan 15, 2009 at 11:59 AM, anan12 wrote: >> >> When I try to create Database persistence(modifying the activemq.xml), >> ran >> into the following error "Can not load JDBC driver class >> oracle.jdbc.driver.OracleDriver" . CLASSPATH has the oracleDriver class, >> no >> clue what else causing this error. >> I appreciates any help on this. >> Here is the part of the error info > ... >> Caused by: java.lang.ClassNotFoundException: >> oracle.jdbc.driver.OracleDriver >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:168) >> at >> org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:764) > > The ClassNotFoundException above indicates that the Oracle driver > cannot be found. Did you put the Oracle JDBC JAR file in the ActiveMQ > lib directory? > > Bruce > -- > perl -e 'print > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E );' > > Apache ActiveMQ - http://activemq.org/ > Apache Camel - http://activemq.org/camel/ > Apache ServiceMix - http://servicemix.org/ > > Blog: http://bruceblog.org/ > > -- View this message in context: http://www.nabble.com/Cannot-load-JDBC-driver-class-%27oracle.jdbc.driver.OracleDriver%27-caused-by-java.lang.ClassNotFoundException%3A-oracle.jdbc.driver.OracleDriver-tp21484553p21484983.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.