Topic
1 reply Latest Post - ‏2012-06-18T05:54:33Z by U4UE_xie_zhi
ProgenitorPrajakta
ProgenitorPrajakta
1 Post
ACCEPTED ANSWER

Pinned topic java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver in classloader

‏2012-06-18T05:06:58Z |
Hello,
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.
Updated on 2012-06-18T05:54:33Z at 2012-06-18T05:54:33Z by U4UE_xie_zhi
  • U4UE_xie_zhi
    U4UE_xie_zhi
    54 Posts
    ACCEPTED ANSWER

    Re: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver in classloader

    ‏2012-06-18T05:54:33Z  in response to ProgenitorPrajakta
    I don't know which DB2 version do you need. WASCE 3.0.0.1 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.