1 2 Previous Next 15 Replies Latest reply on May 9, 2013 6:16 PM by sfcoy Go to original post
      • 15. Re: Could not load requested class : com.mysql.jdbc.Driver
        sfcoy

        Remove:

         

        {code:xml} <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>{code}

        from your hibernate.cfg.xml file.

         

        Your persistence strategy seems a bit confused. You should either be using JPA configuration via persistence.xml, or Hibernate configuration via hibernate.cfg.xml.

         

        Adding the Spring Framework into the mix is going to muddy the water even further.

        1 2 Previous Next