• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UDB Connection from Websphere 6.1

 
Ranch Hand
Posts: 85
Mac Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,
I am a novice with Websphere and I am stuck trying to get an enterprise application to connect to UDB 9.7. I set up a JDBC Provider using the driver db2jcc.jar, the license and then setup a datasource. The code calling the connection is:




In the logs it looks like the driver is being loaded successfully:



But I keep getting this error when the code trys to get a connection:





I thought maybe it was because the driver was compiled using Java 6 and the JRE for Websphere 6.1 is Java 5, but I downloaded the JDBC 3 driver from IBM and I end up getting the same result. Thanks for any insight folks might be able to provide.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cory Hartford wrote:
I thought maybe it was because the driver was compiled using Java 6 and the JRE for Websphere 6.1 is Java 5, but I downloaded the JDBC 3 driver from IBM and I end up getting the same result. Thanks for any insight folks might be able to provide.



Haven't used Websphere for quite some time, but if you run a Java 6 compiled program with Java 5 runtime, you get the UnsupportedClassVersionError.

For the JDBC driver, try using the JDBC4 one. Or you can compile your classes targeted for Java 5.
 
Cory Hartford
Ranch Hand
Posts: 85
Mac Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks K. It turned out it was the driver version. I got a driver and license from a colleague that worked. Not sure where they came from or what the version was but they work.
 
reply
    Bookmark Topic Watch Topic
  • New Topic