-->
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.  [ 1 post ] 
Author Message
 Post subject: /hibernate.cfg.xml not found
PostPosted: Tue Apr 26, 2011 8:13 am 
Newbie

Joined: Tue Apr 26, 2011 8:04 am
Posts: 1
can figure out where is my problem, as can be seen, I have located the hibernate.cfg.xml file almost anywhere possible and still I get this error.
I have also added it to the project classpath but with no luck.

could someone advise?

the error is received when: SessionFactory factory = SessionFactoryUtil.getInstance();

this is a basic desktop application downloaded from:
http://www.laliluna.de/articles/first-h ... orial.html - First Hibernate example - tutorial

the error I get:

72928 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
72976 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.3.Final
72992 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
73007 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
73039 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
73615 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
73616 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml


org.hibernate.HibernateException: /hibernate.cfg.xml not found



Thanks

Elad


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

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.