Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I am new to the hibernateworld,when I run my project, thefollowing error displayed....Please help me to solve the error
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
org.hibernate.MappingException: Could not configure datastore from file: D:\Project\classes\com\network\head.hbm.xml
at org.hibernate.cfg.Configuration.addFile(Configuration.java:249)
at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:530)
at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:527)
at com.network.HibernateUtil.<clinit>(HibernateUtil.java:49)
at com.network.networkTree.getDataModel(networkTree.java:58)
at com.network.networkTree.main(networkTree.java:88)
Caused by: org.hibernate.MappingException: duplicate import: com.network.head
at org.hibernate.cfg.Mappings.addImport(Mappings.java:105)
at org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:541)
at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:488)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:234)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:152)
at org.hibernate.cfg.Configuration.add(Configuration.java:362)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:400)
at org.hibernate.cfg.Configuration.addFile(Configuration.java:245)
... 5 more
I am using Jbuilder and Oracle connection.....
Please help me....