I have a small test project, it contains what appear to be identical property files, one "hibernate.properties" and one "hibernate.xfg.xml". When I run SchemaUpdate with --properties everything is ok, when I run it with --config I get an error that the file cannot be found. I have tried using a fully-qualified path and still get the error. Any suggestions anyone?
Hibernate version: 2.1.6
Full stack trace of any exception that occurs:
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.6
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=com.ihost.cs.jdbc.CloudscapeDriver, hibernate.default_schema=real
life, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.DerbyDialect, hibernate.connection.username=sa, hibernate.connection.url=jdbc:cloudscape:d:/My Projects/RealLife/RealLife, hibernate.show_sql=true, hibernate.connection.password=, hibernate.connection.pool_size=2}
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
Sep 13, 2004 11:31:59 AM net.sf.hibernate.cfg.Configuration getConfigurationInputStream
WARNING: hibernate.cfg.xml not found
Sep 13, 2004 11:31:59 AM net.sf.hibernate.tool.hbm2ddl.SchemaUpdate main
SEVERE: Error running schema update
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:872)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:896)
at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.main(SchemaUpdate.java:65)
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:872)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:896)
at net.sf.hibernate.tool.hbm2ddl.SchemaUpdate.main(SchemaUpdate.java:65)
Name and version of the database you are using: Cloudscape 10b
The generated SQL (show_sql=true): don't get this far!
|