HIbernatre 3.3: org.slf4j.impl.StaticLoggerBinder

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".   
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.   
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder   
    at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)   
    at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:151)   
    at fuwei.hibernate.ExportDB.main(ExportDB.java:8)   
Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder   
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)   
    at java.security.AccessController.doPrivileged(Native Method)   
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)   
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)   
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)   
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)   
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)   
    ... 3 more  

很明显是相关的jar包没有被引入,而且“hibernate-distribution-3.3.1.GA-dist.zip”中压根就没有org/slf4j/impl/StaticLoggerBinder类的存在,还需另外下载slf4j-nop-1.5.2.jar引入到工程中才行。

感谢: http://rgrg.iteye.com/blog/271643

你可能感兴趣的:(java,Hibernate,.net,Security,sun)