Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse plugin and JDBC
Eclipse plugin and JDBC [message #280454] Thu, 03 February 2005 12:00 Go to next message
Eclipse UserFriend
Originally posted by: thorbcn.hotmail.com

Hi, i have a problem with JDBC within an eclipse plugin. In this plugin i
use an API that manages jdbcodbc connections. This API works fine in
standalone mode but in my eclipse plugin fails with this exception:

<CONSOLE STACKTRACE>
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:558)
at java.sql.DriverManager.getConnection(DriverManager.java:188)
at
es.lacaixa.qcc.clasescomunes.client.DataBaseConnection.getCo nnection(DataBaseConnection.java:105)
at
es.lacaixa.qcc.clasescomunes.client.DataBaseConnection.getCo nnection(DataBaseConnection.java:79)
</CONSOLE STACKTRACE>

I have also checked the DriverManager file log and say:

<DRIVERMANAGER FILE LOG>
DriverManager.getConnection("jdbc:odbc:DiarioWS")
trying
driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver@55533bce]
java.sql.SQLException: Unable to load JdbcOdbc library
at sun.jdbc.odbc.JdbcOdbc.<init>(JdbcOdbc.java:96)
at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java: 326)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:164 )
at java.sql.DriverManager.getConnection(DriverManager.java:538)
at java.sql.DriverManager.getConnection(DriverManager.java:188)
at ...
</DRIVERMANAGER FILE LOG>

I can't see what is the problem... i have verified that JdbcOdbc.dll is
loaded when JdbcOdbcDriver is about initializating.
Can anybody help me please? Thanks
Re: Eclipse plugin and JDBC [message #280479 is a reply to message #280454] Thu, 03 February 2005 21:04 Go to previous message
Eclipse UserFriend
Originally posted by: pascal.ibm.canada

Put your JDBC driver in a plugin (see Junit for an example), and have
the plugin that do jdbc call requires it.

PaScaL

Antonia V. wrote:
> Hi, i have a problem with JDBC within an eclipse plugin. In this plugin
> i use an API that manages jdbcodbc connections. This API works fine in
> standalone mode but in my eclipse plugin fails with this exception:
>
> <CONSOLE STACKTRACE>
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getConnection(DriverManager.java:558)
> at java.sql.DriverManager.getConnection(DriverManager.java:188)
> at
> es.lacaixa.qcc.clasescomunes.client.DataBaseConnection.getCo nnection(DataBaseConnection.java:105)
>
> at
> es.lacaixa.qcc.clasescomunes.client.DataBaseConnection.getCo nnection(DataBaseConnection.java:79)
>
> </CONSOLE STACKTRACE>
>
> I have also checked the DriverManager file log and say:
>
> <DRIVERMANAGER FILE LOG>
> DriverManager.getConnection("jdbc:odbc:DiarioWS")
> trying
> driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver@55533bce]
>
> java.sql.SQLException: Unable to load JdbcOdbc library
> at sun.jdbc.odbc.JdbcOdbc.<init>(JdbcOdbc.java:96)
> at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java: 326)
> at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:164 )
> at java.sql.DriverManager.getConnection(DriverManager.java:538)
> at java.sql.DriverManager.getConnection(DriverManager.java:188)
> at ... </DRIVERMANAGER FILE LOG>
>
> I can't see what is the problem... i have verified that JdbcOdbc.dll is
> loaded when JdbcOdbcDriver is about initializating. Can anybody help me
> please? Thanks
>
Previous Topic:Eclipse on Windows CE
Next Topic:New Project Wizard
Goto Forum:
  


Current Time: Sat Jul 12 23:38:11 EDT 2025

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

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

Back to the top