title: log4j hibernate error
body: <p>I get this error when configurating my hibernate </p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
  log4j:WARN Please initialize the log4j system properly.
  </code></pre>
  
  <p>here is the line of code   </p>
  
  <pre><code>Configuration config = new AnnotationConfiguration().configure("HibernatePositionServer.cfg.xml");
  </code></pre>
  
  <p>and here is my cfg file   </p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
      &lt;!--&lt;property name="connection.url"&gt;jdbc:mysql://[Here i put correct IP:Port]/settings&lt;/property&gt;--&gt;
      &lt;!--&lt;property name="connection.url"&gt;jdbc:mysql://127.0.0.1:1433/settings&lt;/property&gt;--&gt;
  
      &lt;property name="connection.driver_class"&gt;org.gjt.mm.mysql.Driver&lt;/property&gt;
      &lt;property name="connection.username"&gt;root&lt;/property&gt;
      &lt;property name="connection.password"&gt;Programa17&lt;/property&gt;
  
      &lt;property name="connection.provider_class"&gt;org.hibernate.connection.C3P0ConnectionProvider&lt;/property&gt;
      &lt;property name="hibernate.c3p0.timeout"&gt;300&lt;/property&gt;
      &lt;property name="hibernate.c3p0.idle_test_period"&gt;150&lt;/property&gt;
      &lt;property name="hibernate.c3p0.min_size"&gt;1&lt;/property&gt;
      &lt;property name="hibernate.c3p0.max_size"&gt;1&lt;/property&gt;
  
      &lt;!-- DB schema will be updated if needed --&gt;
      &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
      &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;
      &lt;!--&lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;--&gt;
      &lt;property name="dialect"&gt;org.hibernate.dialect.MySQL5Dialect&lt;/property&gt;
  
  &lt;/session-factory&gt;
  </code></pre>
  
  <p></p>