• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From where i can find out this file COM.ibm.db2.jdbc.app.DB2Driver ?
I need DB2 JDBC driver jar file. From where i can download it???
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go to DB2 installation path. (Eg "C:\Program Files\IBM\SQLLIB\java" if its windows). There you find db2java.zip. Rename this to db2java.jar and use it.
 
damodaran puliyassery
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I copied the file db2java.jar to jboss/server/default/lib folder
but i am getting the java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver Error.
I am using eclipse.and jBoss version is Joss 5.0.
Please Help me....
 
sujith Acharya
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
make sure its db2java.jar and not db2java.zip
 
damodaran puliyassery
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ya it is db2java.jar.it is shown as the executable jar file.ya i am sure it is jar.
 
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't use DB2, so forgive my lack of specific information. However, the application server is looking for a specific class, which it is not finding. This should be easy to track down.

First, make sure you've put the correct class name in your deployment descriptor. You show it as COM.ibm.db2.jdbc.app.DB2Driver. Is this correct? It begins with all upper-case COM? Make sure it's correct, including upper/lower case.

Next, look at the contents of the db2java.jar file (using Winzip if you have it, or just extract it into a temporary directory) and make sure that the class associated with that name exists. It will be in COM/ibm/db2/jdbc/app/DB2Driver.class. Make sure that all the name components match, including case.

If all that is right, then make sure the jar is really on the classpath of the application server. If you're starting the application server with a script (like run.sh or run.bat), you can edit that script and update the CLASSPATH setting to add this jar.

Good luck.
 
No more fooling around. Read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic