• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

HOW to connect to DB2 from J2EE in the J2EE and EJB

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
My server is J2EE1.3
My DB is DB2
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
would you help me
thx
stephen chan
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
this might be late but better than nothing..:-)
COM/ibm/db2/jdbc/app/db2java.zip is not the name of the driver class, if you already unziped the file replace the last section of the name with DB2Driver.class, db2java.zip in this context does not mean anything...
The best way to do this is to include the db2java.zip in the J2EE_CLASSPATH with no need to unzip it....
i.e. db2java.zip is the file containing the driver, and it should be in your J2EE_CLASSPATH, zippped or not. COM/ibm/db2/jdbc/app/DB2Driver.class is the fully qualified driver class name and it is what is being looked for within the db2java.zip file....
Philip
reply
    Bookmark Topic Watch Topic
  • New Topic