activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anan12 <pavan.anan...@qwest.com>
Subject Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver' caused by java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Date Thu, 15 Jan 2009 18:59:48 GMT

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

ERROR BrokerService                  - Failed to start ActiveMQ JMS Message
Broker. Reason: java.io.
IOException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'
java.io.IOException: Cannot load JDBC driver class
'oracle.jdbc.driver.OracleDriver'
    at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:45)
    at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:61)
    at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.createAdapter(JDBCPersistenceAdapter.ja
va:317)
    at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getAdapter(JDBCPersistenceAdapter.java:
261)
    at
org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.start(JDBCPersistenceAdapter.java:157)
    at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:458)
    at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethod
s(AbstractAutowireCapableBeanFactory.java:1368)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(A
bstractAutowireCapableBeanFactory.java:1334)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abs
tractAutowireCapableBeanFactory.java:473)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAu
towireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstr
actAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory
.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSi
ngletonBeanRegistry.java:221)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.j
ava:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.jav
a:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.jav
a:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:429)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitializatio
n(AbstractApplicationContext.java:729)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationCon
text.java:381)
    at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationCo
ntext.java:64)
at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationCo
ntext.java:52)
    at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java
:96)
    at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
    at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
    at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
    at
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
    at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
    at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
    at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
    at org.apache.activemq.console.Main.main(Main.java:106)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC
driver class 'oracle.jdbc.dr
iver.OracleDriver'
    at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:770)
    at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:544)
at
org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:54)
    ... 37 more
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)
    ... 39 more

Thanks,
Pavan
-- 
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-tp21484553p21484553.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message