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 <[email protected]> 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)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" > );' > > 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.
