-->
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: Library missing in Hibernate Core package
PostPosted: Thu Feb 19, 2009 7:09 pm 
Newbie

Joined: Thu Feb 19, 2009 7:01 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.3.1



When execute sample application(just simple one) I get an error 'SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder'. This seems some library missing/version mismatchng.

Configuration class is looking for org.slf4j.impl.StaticLoggerBinder where as org.slf4j.impl.StaticLoggerBinder is not available in slf4j-api-1.5.2.jar.

Can anyone tell the way to resolve this?


Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 7:25 am 
Beginner
Beginner

Joined: Thu Feb 19, 2009 5:48 am
Posts: 37
Location: Glasgow, Scotland
You should really have read the FAQ, the answer is in there, regardless...Hibernate needs some third party libraries before it can run. This is one of them, go here

http://www.findjar.com/jar/milyn/jars/j2ee-1.4.jar.html

And look for the SLF4J JAR, download it and put it in a directory in your java project path. Then open the Java build path menu in your compiler/IDE and add the new JAR as a dependency (in Eclipse just right click on the project, go to properties > Java Build Path > Libraries > Add External JARS.
That should fix it right up, you may have to add another couple libraries though.

Alternatively, look into a build manager called Maven, it does all this for you :D


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.