This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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.
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!