[slf4j-user] blog entry on JCL

Ceki Gülcü listid at qos.ch
Mon Feb 5 20:01:55 CET 2007


Matt,

The NoClassDefFoundError on "org/slf4j/LoggerFactory" indicates that you 
are missing an SLF4J binding. Do you have an SLF4J binding? On top of 
slf4j-api.jar, jcl-over-slf4j.jar, you also need any one of 
slf4j-nop.jar/slf4j-simple.jar/slf4j-log4j12.jar files.

HTH.



At 07:46 PM 2/5/2007, you wrote:
>Here's the error I get from the Hibernate 3 Plugin: [INFO] 
>------------------------------------------------------------------------ 
>[ERROR] FATAL ERROR [INFO] 
>------------------------------------------------------------------------ 
>[INFO] org/slf4j/LoggerFactory [INFO] 
>------------------------------------------------------------------------ 
>[INFO] Trace java.lang.NoClassDefFoundError: 
>org/slf4j/LoggerFactory         at 
>org.apache.commons.logging.impl.SLF4FLogFactory.getInstance(SLF4FLogFactory.java:154) 
>at 
>org.apache.commons.logging.impl.SLF4FLogFactory.getInstance(SLF4FLogFactory.java:130) 
>at 
>org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) 
>at 
>org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120) 
>at 
>org.codehaus.mojo.hibernate3.configuration.AnnotationComponentConfiguration.createConfiguration(AnnotationComponentConfiguration.java:41) 
>at 
>org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:32) 
>at 
>org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87) 
>at 
>org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:139) 
>I'll post a message to the mojo user list and see if they have a solution. 
>Matt On 2/5/07, Ceki Gülcü <listid at qos.ch> wrote: > > Matt, > > Welcome 
>to the slf4j user list.  I just came across your blog entry on > commons 
>logging [1]. > You write that <quote>I tried changing to 
><http://www.slf4j.org/>SLF4J, but > that causes some Maven plugins to 
>fail. </quote> > > Could you briefly mention how SLF4J fails for maven 
>plugins? Even the > shortest description might help. > > Many thanks in 
>advance, > > [1] 
>http://raibledesigns.com/page/rd?entry=maven_2_hates_commons_logging > > >  
> > -- > Ceki Gülcü > Logback: The reliable, generic, fast and flexible 
>logging framework for Java. > http://logback.qos.ch > > 
>_______________________________________________ > user mailing list > 
>user at slf4j.org > http://www.slf4j.org/mailman/listinfo/user > -- 
>http://raibledesigns.com _______________________________________________ 
>user mailing list user at slf4j.org http://www.slf4j.org/mailman/listinfo/user

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch




More information about the slf4j-user mailing list