title: error with project in spring, hibernate
body: <p>This the error that I'm getting:</p>
  
  <p>SEVERE: StandardWrapper.Throwable
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuarioControlador': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.blah.base.database.DAO.UsuarioDAO com.blah.base.controlador.UsuarioControlador.usuarioDAO; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'UsuarioDAO' defined in file [C:\Users\Owner\workspaceSpring.metadata.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\base\WEB-INF\classes\com\yavale\base\database\hibernetDAO\UsuarioHibernetDao.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.hibernate.SessionFactory]: : No qualifying bean of type [org.hibernate.SessionFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=sessionFactory)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.hibernate.SessionFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=sessionFactory)}</p>
  
  <p>This is my UsuarioControlador (controller):</p>
  
  <pre><code>@Controller
  @RequestMapping("/")
  public class UsuarioControlador {
  
  private UsuarioDAO usuarioDAO;
  @Autowired 
  public void setUsuarioDAO(UsuarioDAO usuarioDAO) {
      this.usuarioDAO = usuarioDAO;
  }
  
  @RequestMapping(method = RequestMethod.GET)
  public String list(Model model) {
      List&lt;Usuario&gt; usuarios = usuarioDAO.listarUsuarios();
      model.addAttribute("usuarios", usuarios);
  
      return "index";
  }
  }
  </code></pre>
  
  <p>This is UsuarioDAO:</p>
  
  <pre><code>public interface UsuarioDAO {
  
  void insertarUsuario(Usuario usuario);
  void modificarUsuario(Usuario usuario);
  List&lt;Usuario&gt; listarUsuarios();
  Usuario buscarUsuario(String idUsuario);
  void eliminarUsuario(Usuario usuario);
  
  }
  </code></pre>
  
  <p>This is the class that implements UsuarioDAO:</p>
  
  <pre><code>import org.hibernate.SessionFactory;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.beans.factory.annotation.Qualifier;
  import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
  import org.springframework.stereotype.Service;
  
  @Service(value="UsuarioDAO")
  public class UsuarioHibernetDao extends HibernateDaoSupport implements UsuarioDAO{
  
  @Autowired
  public UsuarioHibernetDao(@Qualifier("mySessionFactory") SessionFactory 
          sessionFactory) {
      this.setSessionFactory(sessionFactory);
  }
  
  
  public void insertarUsuario(Usuario usuario) {
      this.getHibernateTemplate().save(usuario);
  }
  
  public void modificarUsuario(Usuario usuario) {
      this.getHibernateTemplate().update(usuario);
  }
  
  public List&lt;Usuario&gt; listarUsuarios() {
      return this.getHibernateTemplate().find("from Usuario");
  }
  
  public Usuario buscarUsuario(String idUsuario) {
      return this.getHibernateTemplate().load(Usuario.class, idUsuario);
  }
  
  public void eliminarUsuario(Usuario usuario) {
      this.getHibernateTemplate().delete(usuario);
  }
  
  }
  </code></pre>
  
  <p>This is my servlet-context.xml: <a href="https://dl.dropboxusercontent.com/u/31349296/servlet-context.xml" rel="nofollow noreferrer">https://dl.dropboxusercontent.com/u/31349296/servlet-context.xml</a></p>
  
  <p>I'm new with spring so Im completely lost with this.</p>
  
  <p><strong>Edit</strong>: this is the complete stack trace: <a href="https://dl.dropboxusercontent.com/u/31349296/log.txt" rel="nofollow noreferrer">https://dl.dropboxusercontent.com/u/31349296/log.txt</a></p>
  
  <p><strong>Edit2</strong>: </p>
  
  <p><img src="https://i.stack.imgur.com/TPEk6.png" alt="enter image description here"></p>