From: Gavin_King/Cirrus%<CI...@ci...> - 2002-08-07 06:34:15
|
>Here's one I always forget (I may have some of the details wrong, check me): > >* I think I've configured everything correctly, but I keep getting class >not found 'COM.ibm.db2.jdbc.app.DB2Driver' errors! > >Hibernate searches for a configuration file ><hibernate-root>/classes/hibernate.properties and uses it to configure >database connections and other properties. If you are specifying Hibernate >properties in some other way, you must delete or move this file. Now that you put it like *that*, perhaps the functionality is wrong! Should system properties specified with java -D override hibernate.properties, rather than the other way round? That makes more sense, I suppose. (Properties specified in hibernate.cfg.xml already override hibernate.properties. Properties specified by passing a java.util.Properties *completely* ignore hibernate.properties + system properties.) |