title: Beginning Hibernate 3.5 - Problems with ant task
body: <p>I'm trying to work through "Beginning Hibernate 3.5", and I've hit an initial snag.</p>
  
  <p>When I run <code>ant exportDDL</code>, I get the following error:</p>
  
  <pre><code>exportDDL:
     [htools] Executing Hibernate Tool with a Hibernate Annotation/EJB3 Configuration
     [htools] 1. task: hbm2ddl (Generates database schema)
     [htools] SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
     [htools] SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
     [htools] An exception occurred while running exporter #2:hbm2ddl (Generates database schema)
     [htools] To get the full stack trace run ant with -verbose
     [htools] Problems in creating a AnnotationConfiguration. Have you remembered to add it to the classpath ?
     [htools] java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
  
  BUILD FAILED
  C:\hibernate\project\build.xml:30: Problems in creating a AnnotationConfiguration. Have you
  remembered to add it to the classpath ?
  </code></pre>
  
  <p>with the following ant task:</p>
  
  <pre><code>&lt;target name="exportDDL" depends="compile"&gt;
      &lt;mkdir dir="${sql}"/&gt;
      &lt;htools destdir="${sql}"&gt;
          &lt;classpath refid="classpath.tools"/&gt;
          &lt;annotationconfiguration
                  configurationfile="${src}/hibernate.cfg.xml"/&gt;
          &lt;hbm2ddl drop="true" outputfilename="sample.sql"/&gt;
      &lt;/htools&gt;
  &lt;/target&gt;
  &lt;target name="compile"&gt;
      &lt;javac srcdir="${src}" destdir="${bin}" classpathref="classpath.base"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>What's going on here? <code>ant compile</code> works fine, but the <code>exportDDL</code> task does not. The sl4j jar is on the classpath, and I downloaded <code>slf4j-simple-1.6.1.jar</code>. Thoughts?</p>