camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lekkie <lekkie.ay...@gmail.com>
Subject Re: Class.forName("net.sourceforge.jtds.jdbc.Driver") called inside spring cannot be found
Date Mon, 22 Feb 2010 10:11:09 GMT

Yes, its an OSGI bundle and I have that package imported already.


willem.jiang wrote:
> 
> Did you deploy the route context into OSGi platform?
> Can you add the package of "net.sourceforge.jtds.jdbc" into your 
> application OSGi meta info of Import-Packages.
> 
> Willem
> 
> lekkie wrote:
>> Hi,
>> 
>> I am using the com.mchange.v2.c3p0.ComboPooledDataSource library to
>> create
>> datasource to manage database connection.
>> 
>> However, whenever I tried to use the datasource to get a connection it
>> throws classnotfoundexception for net.sourceforge.jtds.jdbc.Driver. I was
>> able to load same class
>> (Class.forName("net.sourceforge.jtds.jdbc.Driver"))
>> inside my bean (the one that is suppose to use the datasource
>> connection).
>> 
>> How do I resolve this?
>> 
>> kr.
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Class.forName%28%22net.sourceforge.jtds.jdbc.Driver%22%29-called-inside-spring-cannot-be-found-tp27637403p27685103.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message