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 configuration files is being read multiple times
PostPosted: Sun Sep 20, 2009 4:53 am 
Newbie

Joined: Sun Sep 20, 2009 4:45 am
Posts: 1
Hi, I have a enterprise application which uses hibernate. It was running fine untill one day when we started server we found that hibernate.cfg.xml is being read multiple times and each entity bean is being configured and loaded that many times. here are the logs
2009-09-20 13:15:43,746 INFO [org.hibernate.cfg.Environment] Hibernate 3.2.0.ga
2009-09-20 13:15:43,762 INFO [org.hibernate.cfg.Environment] hibernate.properties not found
2009-09-20 13:15:43,767 INFO [org.hibernate.cfg.Environment] Bytecode provider name : cglib
2009-09-20 13:15:43,777 INFO [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
2009-09-20 13:15:43,985 INFO [org.hibernate.cfg.Configuration] configuring from resource: /hibernate.cfg.xml
2009-09-20 13:15:43,985 INFO [org.hibernate.cfg.Configuration] configuring from resource: /hibernate.cfg.xml
2009-09-20 13:15:43,985 INFO [org.hibernate.cfg.Configuration] Configuration resource: /hibernate.cfg.xml
2009-09-20 13:15:43,985 INFO [org.hibernate.cfg.Configuration] Configuration resource: /hibernate.cfg.xml
.................
this is being called 15 times and each mapping xml is also being called that many times.
I am not sure what is causing this, i wanted to ensure if this creates any problem in working of my application. Because since we see these logs we are not able to insert rows in one of the tables. The application is in production, any immediate help would be appreciated.


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.