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 Mon, 22 Feb 2010 03:58:19 GMT
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