camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Gargan <steve.gar...@gmail.com>
Subject Re: Felix is not finding mysqlconnector bundle
Date Tue, 09 Feb 2010 18:47:50 GMT
Does your bundle import the package 'com.mysql.jdbc' ? Make sure it
has something like the following in its bundle manifest

Import-Package: com.mysql.jdbc

On Mon, Feb 8, 2010 at 10:47 PM, NagendraCorpus
<marimekala.nagendra@gmail.com> wrote:
>
> Hi,
>
> i am trying to use camel sql component inside felix , but when i am
> deploying my bundle it is showing
>
> like thiss..
>
>
> org.springframework.jdbc.CannotGetJdbcConnectionException: Could not load
> JDBC d
> river class [com.mysql.jdbc.Driver]; nested exception is
> java.lang.ClassNotFound
> Exception: com.mysql.jdbc.Driver
>        at
> org.springframework.jdbc.datasource.DriverManagerDataSource.setDriver
> ClassName(DriverManagerDataSource.java:149)
>        at com.corpus.print.console.Activator.start(Activator.java:38)
>        at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
> ion.java:589)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
>        at
> org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:412
> 1)
>        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3257)
>        at
> org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java
> :329)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
>        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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>        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:247)
>        at
> org.springframework.jdbc.datasource.DriverManagerDataSource.setDriver
> ClassName(DriverManagerDataSource.java:146)
>        ... 7 more
>
>
> i deployed mysql connector bundle also , but it is unable to find . please
> reply soon . what i have to do inorder to find that mysqlconnector bundle
> inside felix
>
> Thanks ,
> Nagendra
>
>
>
> --
> View this message in context: http://old.nabble.com/Felix-is-not-finding-mysqlconnector-bundle-tp27511110p27511110.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message