Originally posted by Rahul Mahindrakar:
I guess you have set the path to db2java.zip and not the class file by unziping it.
I have unziped my db2java.zip file and find in it tow DB2Driver.class files
The first one belongs to the "COM.ibm.db2.jdbc.app"
and the second one belongs to "COM.ibm.db2.jdbc.net" packages
I use the first one on my system as i could specify only that in my Websphere application server when configuring the driver.
Also it is strange that IBM uses the "COM" all in caps as packages are supposed to be in lowercase.
Please look at package names or write them carefully whenever you do so.
Why dont you try to change the HitCounterBean's DataSource to your DB2 database and restart the server. If you get any specific errors then we can look into it.
Hope we get it right this time
I follow your description and unzip the db2java.zip file to a directory, let say "test". and then i set the classpath to the directory, it doesn't work, then i reset the classpath to the directory contains the two class files and run the program in J2ee1.3 server. it threw NoClassFoundException. what can i do/
when i unzip the db2java.zip file to a directory, let say "temp"
after i set the classpath and j2ee_classpath to the directory.
there is still an error which says "COM/ibm/db2/jdbc/app/db2java.zip" not found
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|