From: Eric E. <ev...@pr...> - 2002-08-07 15:55:13
|
(Sorry for the previous direct email - I am actually subscribed to the dev list, I just keep hitting reply to these things$W%$&) I run into the "no db2 driver" problem because I use the SchemaGen tool with System.Properties settings instead of passing in a set of properties, as I do in production code. So after looking at it, I'd say this is mostly just me using a somewhat questionable technique. But to allow for people who use System.properties for configuration, I would suggest that the entire hibernate.properties file be commented out - what are the chances that its correct for anyone? I believe this would clear this up, since the file would no longer over-write prior properties. Cheers, Eric Everman At 01:18 AM 8/7/2002, Gavin_King/Cirrus%CI...@ci... wrote: > >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.) > > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Hibernate-devel mailing list >Hib...@li... >https://lists.sourceforge.net/lists/listinfo/hibernate-devel |