-->
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: getting excception when i run simple hibernate program
PostPosted: Mon Dec 21, 2015 10:57 am 
Newbie

Joined: Mon Dec 21, 2015 10:44 am
Posts: 2
hi all of you
i am getting exception to run simple hibernate program
the error are like that--
------------------------------------------------------------------

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" org.hibernate.HibernateException: /org/hibernate/mishra/hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2176)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2157)
at org.hibernate.mishra.StoreData.main(StoreData.java:14)
============================================================
org.hibernate.mishra-->this is the package name
------------------------------------
please help me to solve this riddle.
thank you.


Top
 Profile  
 
 Post subject: Re: getting excception when i run simple hibernate program
PostPosted: Mon Dec 21, 2015 11:00 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
There's no exception here. The SLF4J logging facade cannot locate a dependency and therefore all logging is disabled.
Make sure you add logback or log4j2, log4j to your dependencies and provide a logging configuration file, and then this warning will go away.


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.