I am getting an error java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver in classloader default/E-GasSeva_Eclipse_Web_E-GasSeva_Eclipse_Web1.war/1.0/car when deploying my war application in Eclipse helios and WASCE.
I have added the db2jcc.jar, db2jcc_license_cu.jar and sqlj.zip and sqlj4.zip libraries in my war application.
Please help me around as i am searching for the solution from a long time.
Pinned topic java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver in classloader
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-06-18T05:54:33Z at 2012-06-18T05:54:33Z by U4UE_xie_zhi
U4UE_xie_zhi 060001U4UE54 Posts
Re: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver in classloader2012-06-18T05:54:33ZThis is the accepted answer. This is the accepted answer.I don't know which DB2 version do you need. WASCE 220.127.116.11 have supported DB2 8.2,9.1,9.5. In most cases you don't need to carry any DB2 driver by yourselves.
If you will try the DB2 driver which the server provides. I suggest you create a datasource by admin console.Please refer the link(https://cwiki.apache.org/GMOxDOC30/configuring-a-db2-datasource.html).
If you confirm the server couldn't support your DB2 connection, you can install your driver first, and then create the datasource.