-->
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: exception with Loggerfactory
PostPosted: Sun Apr 05, 2009 3:25 am 
Newbie

Joined: Sun Apr 05, 2009 2:29 am
Posts: 1
Location: jhgkjhklj
when i excuting hibernate application i got an exception like


Exception in Thread "main" java.lang.NoClassDefFoundError:org/slf4j/LoggerFactory


i think this is because of improper set of classpath,but i set my classpath with log4j.jar,hibernate3.jar,commons-logging.jar,cglib.jar,dom4j.jar,commens-collections.jar,ehcache.jar,jta.jar.


even though i add slf4j.jar ,i got an another exception like


Exception in Thread "main" java.lang.NoClassDefFoundError:org/slf4j/impl/StaticLoggerBinder

_________________
mmskfk


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 10:31 pm 
Beginner
Beginner

Joined: Sun Dec 28, 2008 6:01 pm
Posts: 24
I guess this requires two jar files to be added to the classpath. Download latest jar files from http://www.slf4j.org/download.html. From them add the below two jar files to the classpath. I hope this will resolve your issue. And, don't ask me why, :). Maybe, someone else from this forum could help us understand why two jars

slf4j-api-1.5.6.jar
slf4j-log4j12-1.5.6.jar

____________________________________________________
Please do rate my posting if it was helpful


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.