Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to connect OSGI with SQL server on Eclipse
How to connect OSGI with SQL server on Eclipse [message #1835465] Thu, 03 December 2020 15:28 Go to next message
Eclipse UserFriend
I'm working on a project using OSGI framework on Eclipse and I'm currently trying to connect to a SQL server.

I've followed [this][1] tutorial until the step 18. Meaning that I managed to create a `Plug-In from Existing JAR Archives` and export it. I did not follow after that because it talks about Apache Felix, which I don't use.

Then I imported the plug in by going to MANIFEST > Dependencies > Required Plug ins.

However, I still get `java.sql.SQLException: No suitable driver found for jdbc:sqlserver://..` when I try to connect to the SQL server.

My question is, are there any other additional steps required to make this work, apart from importing the jar file as a plug in?

[1]: https://cq-ops.tumblr.com/post/21893960212/how-to-turn-a-jdbc-driver-jar-into-an-osgi-bundle
Re: How to connect OSGI with SQL server on Eclipse [message #1837005 is a reply to message #1835465] Wed, 20 January 2021 15:16 Go to previous message
Eclipse UserFriend
You can also:

1. Add the driver jar to your project
2. Open your MANIFEST.MF file
3. Open the runtime tab
4. Add the jar in the "classpath" section

don't forget to include it in your build.properties

[Updated on: Wed, 20 January 2021 15:16] by Moderator

Previous Topic:Where can I learn Eclipse Plug-In Development?
Next Topic:SSL error when adding Remote Liberty server
Goto Forum:
  


Current Time: Mon Apr 21 10:34:05 EDT 2025

Powered by FUDForum. Page generated in 0.02910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top