camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Class.forName("net.sourceforge.jtds.jdbc.Driver") called inside spring cannot be found
Date Thu, 25 Feb 2010 02:45:09 GMT
Did you use the spring-datasource to load the datasource?
If so please refresh spring datasource bundle to let it pick up the Driver.

Willem

lekkie wrote:
> 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.
>>
>>
> 


Mime
View raw message