Hibernate version: 2.1.6
Full stack trace of any exception that occurs:
2004-12-27 22:36:05,365 INFO [main] (Environment.java:469) - Hibernate 2.1.6
2004-12-27 22:36:05,384 INFO [main] (Environment.java:498) - hibernate.properties not found
2004-12-27 22:36:05,395 INFO [main] (Environment.java:529) - using CGLIB reflection optimizer
2004-12-27 22:36:05,419 INFO [main] (Configuration.java:895) - configuring from resource: hibernate.cfg.xml
2004-12-27 22:36:05,421 INFO [main] (Configuration.java:867) - Configuration resource: hibernate.cfg.xml
2004-12-27 22:36:05,424 WARN [main] (Configuration.java:871) - hibernate.cfg.xml not found
2004-12-27 22:36:05,437 ERROR [main] (SchemaExport.java:310) - Error creating schema
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.SchemaExport.main(SchemaExport.java:275)
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.SchemaExport.main(SchemaExport.java:275)
Name and version of the database you are using: postgresql 7.4
Debug level Hibernate log excerpt: DEBUG
I traced through the source and the reason why hibernate.cfg.xml is not found is because it expects it in net/sf/hibernate/cfg. hibernate.cfg.xml I am running SchemaExport in eclipse and made sure that my hibernate.cfg.xml is in the classpath. Is this a bug or am I doing something wrong?
|