1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| %%%% Error Creating HibernateSessionFactory %%%%
org.hibernate.HibernateException: /hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1411)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1433)
at de.laliluna.hibernate.InitSessionFactory.initSessionFactory(InitSessionFactory.java:65)
at de.laliluna.hibernate.InitSessionFactory.getInstance(InitSessionFactory.java:38)
at de.laliluna.example.TestClient.createHoney(TestClient.java:80)
at de.laliluna.example.TestClient.main(TestClient.java:33)
Exception in thread "main" org.hibernate.HibernateException: Could not initialize the Hibernate configuration
at de.laliluna.hibernate.InitSessionFactory.initSessionFactory(InitSessionFactory.java:82)
at de.laliluna.hibernate.InitSessionFactory.getInstance(InitSessionFactory.java:38)
at de.laliluna.example.TestClient.createHoney(TestClient.java:80)
at de.laliluna.example.TestClient.main(TestClient.java:33)
09:03:36,906 INFO Environment:514 - Hibernate 3.2.6
09:03:36,921 INFO Environment:547 - hibernate.properties not found
09:03:36,953 INFO Environment:681 - Bytecode provider name : cglib
09:03:36,968 INFO Environment:598 - using JDK 1.4 java.sql.Timestamp handling
09:03:37,156 INFO Configuration:1432 - configuring from resource: /hibernate.cfg.xml
09:03:37,156 INFO Configuration:1409 - Configuration resource: /hibernate.cfg.xml |
Partager