Boa tarde galera. Estou testando uma aplicação onde quero mapear um banco que roda no SQL Server 2005;
Uso Eclipse WTP e começando a usar o Hibernate. Conferi alguns tutoriais e artigos e montei o projeto.
Estou com um problema, quando executo a classe de testes, o log gerado mostra que o mapeamento (aparentemente) dos docs .xml e .java estão ok, mas parece que o hibernate nao consegue acessar meu BD…
Segue o Log, se alguem puder ajudar, FICAREI IMENSAMENTE GRATO!
Abraços.
2008-07-30 17:20:35,309 INFO hibernate.cfg.SettingsFactory -> cache provider: net.sf.ehcache.hibernate.Provider
net.sf.hibernate.HibernateException: could not instantiate CacheProvider: net.sf.ehcache.hibernate.Provider
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:133)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at br.com.human.hbm.service.SessionFactoryLocator.<init>(SessionFactoryLocator.java:16)
at br.com.human.hbm.service.SessionFactoryLocator.getInstance(SessionFactoryLocator.java:21)
at br.com.human.hbm.modeo.dao.CrudDAO.recuperarProduto(CrudDAO.java:31)
at teste.Teste.recuperaProduto(Teste.java:39)
at teste.Teste.main(Teste.java:17)
Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.hibernate.Provider
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:130)
... 7 more