File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange Error when using Hibernate in a web application

 
Ainar Martin
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I'm new to Hibernate.

I have generated with Hibernate Tools a database access module. The generator generates the code of the DAOS and Hibernate Beans. When I test this module in a simple Java application all works fine, but when I test
it in a Spring Web application I get a very strange error. Since my module is an independent jar it should access the database without regarding the circumstance of being executed in a simple Java application or a Web application. The code of my web application is:




When running this code on Tomcat I get following error:




When I change some Hibernate dependencies I get following error:



When I test the above code in a simple Java application all works fine.

Is this a spring-hibernate configuration problem?

Thank you for your help.
 
Ainar Martin
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have followed the advice posted in the following link but I still get the same error:

http://stackoverflow.com/questions/471799/spring-and-hibernate-cfg-xml

Thank you for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic