You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Vinu Raj <vi...@wipro.com> on 2015/06/24 07:58:19 UTC
Re: com.mysql.jdbc.Driver not found by bundle in karaf
You need to import the driver in your pom.xml as below
<Import-Package>
*,com.mysql.jdbc.Driver
</Import-Package>
--
View this message in context: http://karaf.922171.n3.nabble.com/com-mysql-jdbc-Driver-not-found-by-bundle-in-karaf-tp4041053p4041057.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: com.mysql.jdbc.Driver not found by bundle in karaf
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Take a look on jdbc:* commands, it might help you.
Regards
JB
On 06/25/2015 08:17 AM, Achim Finke wrote:
> Hi,
>
> you may read
> http://freemanfang.blogspot.de/2012/03/how-to-use-jdbc-driver-in-osgi.html.
> It describes different options how to deal with this issue.
>
> 2015-06-24 14:33 GMT+02:00 Vinu Raj <vinuraj.maroli@wipro.com
> <ma...@wipro.com>>:
>
> Mention only the package name. By mistake i mentioned
> com.mysql.jdbc.Driver
> which is including class name
> <Import-Package>
> *,com.mysql.jdbc
> </Import-Package>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/com-mysql-jdbc-Driver-not-found-by-bundle-in-karaf-tp4041053p4041063.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: com.mysql.jdbc.Driver not found by bundle in karaf
Posted by Achim Finke <ac...@googlemail.com>.
Hi,
you may read
http://freemanfang.blogspot.de/2012/03/how-to-use-jdbc-driver-in-osgi.html.
It describes different options how to deal with this issue.
2015-06-24 14:33 GMT+02:00 Vinu Raj <vi...@wipro.com>:
> Mention only the package name. By mistake i mentioned com.mysql.jdbc.Driver
> which is including class name
> <Import-Package>
> *,com.mysql.jdbc
> </Import-Package>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/com-mysql-jdbc-Driver-not-found-by-bundle-in-karaf-tp4041053p4041063.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: com.mysql.jdbc.Driver not found by bundle in karaf
Posted by Vinu Raj <vi...@wipro.com>.
Mention only the package name. By mistake i mentioned com.mysql.jdbc.Driver
which is including class name
<Import-Package>
*,com.mysql.jdbc
</Import-Package>
--
View this message in context: http://karaf.922171.n3.nabble.com/com-mysql-jdbc-Driver-not-found-by-bundle-in-karaf-tp4041053p4041063.html
Sent from the Karaf - User mailing list archive at Nabble.com.