Salut tous,
J'ai une erreur dans mon code java
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils). log4j:WARN Please initialize the log4j system properly. Initial SessionFactory creation failed.org.hibernate.MappingNotFoundException: resource: dao/entites/User.hbm.xml not found Exception in thread "main" java.lang.ExceptionInInitializerError at util.HibernateUtil.<clinit>(HibernateUtil.java:17) at metier.dao.UserDaoImpl.addUser(UserDaoImpl.java:18) at metier.service.UserManagerImpl.addUser(UserManagerImpl.java:21) at metier.dao.DaoTest.main(DaoTest.java:14) Caused by: org.hibernate.MappingNotFoundException: resource: dao/entites/User.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:569) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514) at org.hibernate.cfg.Configuration.configure(Configuration.java:1434) at org.hibernate.cfg.Configuration.configure(Configuration.java:1420) at util.HibernateUtil.<clinit>(HibernateUtil.java:13) ... 3 more
Partager