Hopefully my answer won't stop someone more authoritative from commenting on this issue, but here is what I think.

maven plugins have their own set of dependencies. I think that the pom for this plugin does not have slf4j in it as a dependency. I would try configuring slf4j as an extension for the plugin and see if that fixes the CNF.





----- Original Message ----- From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 05, 2007 1:49 PM
Subject: [mojo-user] Replacing commons-logging with slf4j - causes hibernate3 plugin issues


I'm trying to replace commons-logging with slf4j in AppFuse.  If I
exclude it from my Spring dependency and add slf4j as a dependency - I
get the following error from the hibernate3 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)

Any idea how to fix this?

Thanks,

Matt

--
http://raibledesigns.com


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to