-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: org.hibernate.MappingException: Could not configure datastor
PostPosted: Thu Dec 22, 2005 3:13 am 
Newbie

Joined: Wed Dec 21, 2005 5:44 am
Posts: 1
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....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 27, 2005 3:04 pm 
Regular
Regular

Joined: Fri Sep 09, 2005 11:35 am
Posts: 101
Caused by: org.hibernate.MappingException: duplicate import: com.network.head

did you map this twice.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.