logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: Error while loading OracleDriver
Date Wed, 19 Nov 2008 16:47:04 GMT
How about placing the Oracle driver in the classpath?

Jake

On Wed, 19 Nov 2008 03:11:04 -0800 (PST)
  manish_goyal <manishkumar_goyal@infosys.com> wrote:
> 
> Hi,
> 
> I am sending message to JMS queue using java application. From there i am
> using log4j.properties file for logging message to File and Database. I have
> added ojdbc.jar and JDBCAppender.jar file in dependency.
> I am able to log in to file, but for DataBase i am getting following error:-
> 
> log4j:ERROR Failed to load driver
> 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
> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
> oader.java:195)
>        at
> org.codehaus.classworlds.DefaultClassRealm.loadClassDirect(DefaultCla
> ssRealm.java:412)
>        at
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
> m.java:376)
>        at
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
> java:214)
>        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:164)
>        at
> org.apache.log4j.jdbc.JDBCAppender.setDriver(JDBCAppender.java:351)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav
> a:205)
>        at
> org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav
> a:164)
>        at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
> ava:129)
>        at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.j
> ava:96)
>        at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigura
> tor.java:654)
>        at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigura
> tor.java:612)
>        at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyC
> onfigurator.java:509)
>        at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
> r.java:415)
>        at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
> r.java:316)
>        at
> org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.
> java:324)
>        at
> com.cvs.eph.common.EPHExceptionHandler.handleException(EPHExceptionHa
> ndler.java:20)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abst
> ractInvoker.java:127)
>        at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
> .java:82)
>        at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.jav
> a:110)
>        at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
> .java:68)
>        at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv
> okerInterceptor.java:56)
>        at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecu
> tor.java:37)
>        at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Se
> rviceInvokerInterceptor.java:92)
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
> orChain.java:221)
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
> ationObserver.java:77)
>        at
> org.apache.cxf.transport.jbi.JBIDispatcherUtil.dispatch(JBIDispatcher
> Util.java:156)
>        at
> org.apache.servicemix.cxfse.CxfSeEndpoint.process(CxfSeEndpoint.java:
> 232)
>        at
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLi
> feCycle.java:540)
>        at
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(Async
> BaseLifeCycle.java:492)
>        at
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLife
> Cycle.java:46)
>        at
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBoun
> d(DeliveryChannelImpl.java:610)
>        at
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlo
> w.java:172)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.j
> ava:167)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.jav
> a:134)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
> utor.java:650)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
> .java:675)
>        at java.lang.Thread.run(Thread.java:595)
> 
> 
> Please give some pointer to solve this issue.
> 
> Thanks.
> 
> Regards,
> Manish
> 
> -- 
> View this message in context: 
>http://www.nabble.com/Error-while-loading-OracleDriver-tp20577699p20577699.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message