• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Problem in JDBC connection in Websphere 3.5.0

Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to access the database using jdbc connection using the below code
public java.sql.Connection getConnection() {

java.sql.Connection oCon=java.sql.DriverManager.getConnection("jdbc b2:RABOOL","db2admin","db2admin");
return oCon;
catch(Exception ee)
System.out.println("Get Connection failed"+ee);
return null;
But this throws the exception
Root Error-1: SQLConnect
java.lang.UnsatisfiedLinkError: SQLConnect at COM.ibm.db2.jdbc.app.DB2Connection.(DB2Connection.java:255) at COM.ibm.db2.jdbc.app.DB2Driver.connect(DB2Driver.java:236) at java.sql.DriverManager.getConnection(DriverManager.java:479) at java.sql.DriverManager.getConnection(DriverManager.java:139) at D_0003a.WebSphere.AppServer.hosts.d_00025fault_0005fhost.live.web.faps.faps_TestSql_jsp_2.getConnection(faps_TestSql_jsp_2.java:31) at
What is the cause for the above problem?
Is there anything to change on DB2 part
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
    Bookmark Topic Watch Topic
  • New Topic