-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: DB2 UDB NATIVE DRIVER - COM.ibm.db2.jdbc.app.DB2Driver
PostPosted: Tue Aug 24, 2004 9:47 am 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
I am trying to use the NATIVE DB2 DRIVER but keep getting that it is not found. What am I missing??

I have the following in my hibernate.properties
hibernate.dialect net.sf.hibernate.dialect.DB2Dialect
hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
hibernate.connection.url jdbc:db2://somedb

I did a Class.forName("COM.ibm.db2.jdbc.app.DB2Driver"); //THIS GETS NO ERRORS
before


static {
try {
// Create the SessionFactory
sessionFactory = new Configuration().configure().buildSessionFactory();
} catch (HibernateException ex) {
throw new RuntimeException("Configuration problem: " + ex.getMessage());
}
}


Hibernate version: 2.1.4

c3pO version: 0.8.4.5

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
java.lang.ExceptionInInitializerError
at com.gs.fw.gc.core.refs.DataSrcInstanceTB.main(DataSrcInstanceTB.java:107)
Caused by: java.lang.RuntimeException: Configuration problem: JDBC Driver class not found: COM.ibm.db2.jdbc.app.DB2Driver
at com.gs.aml.util.HibernateUtil.<clinit>(HibernateUtil.java:30)
... 1 more
Exception in thread "main"


Name and version of the database you are using: DB2 UDB

Debug level Hibernate log excerpt:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.