When I select a Type 2 or Type 4 Java connection using the Eclipse plug in, I get an error msg that the Java class is already loaded. In researching the issue, I have seen msgs about resetting the classpath in Eclipse so it will load the driver one time and should cause me to not get this error.
Currently, because of the error, I can not connect with a Type 2 or 4 connection. I can only connect using a Java ODBC connection. I would really like to get this resolved.
Note, I am not connecting through a Java program I am editing. The connection I am referring to is when I open the plug in as an Eclipse perspective and click the Connection link in the plug in window.
Does anyone have a suggestion as to what to change to get the type 2 or 4 connections working?
Thanks, Andy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need some more informations to help you.
Which JDBC Driver do you have configured for your connection (driver version and Class) ?
Which connection URL do you use?
Do you have some error messages form the eclipse error log for this issue?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using the Java driver that comes with the IBM DB2 client.
I am using this connection url: jdbc:db2//<server>[:port]/<dbname>.
I am not seeing any error msgs in the log because I don't seem to be getting that far. When I click on the link to enter my user ID and password, it will not let me proceed past that point. When it tries to connect, it never does. It just comes back with a msg in the connection window stating the class path is already loaded and will not make the connection.
Thanks, Andy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I select a Type 2 or Type 4 Java connection using the Eclipse plug in, I get an error msg that the Java class is already loaded. In researching the issue, I have seen msgs about resetting the classpath in Eclipse so it will load the driver one time and should cause me to not get this error.
Currently, because of the error, I can not connect with a Type 2 or 4 connection. I can only connect using a Java ODBC connection. I would really like to get this resolved.
Note, I am not connecting through a Java program I am editing. The connection I am referring to is when I open the plug in as an Eclipse perspective and click the Connection link in the plug in window.
Does anyone have a suggestion as to what to change to get the type 2 or 4 connections working?
Thanks, Andy
I need some more informations to help you.
Which JDBC Driver do you have configured for your connection (driver version and Class) ?
Which connection URL do you use?
Do you have some error messages form the eclipse error log for this issue?
I am using the Java driver that comes with the IBM DB2 client.
I am using this connection url: jdbc:db2//<server>[:port]/<dbname>.
I am not seeing any error msgs in the log because I don't seem to be getting that far. When I click on the link to enter my user ID and password, it will not let me proceed past that point. When it tries to connect, it never does. It just comes back with a msg in the connection window stating the class path is already loaded and will not make the connection.
Thanks, Andy
Hi Andy,
There was a bug reported with the sample connection url for db2.
The correct URL is:
jdbc:db2://<server>[:port]/<dbname>
(The ':' after db2 was missing)
Try this please.