• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Strange Error when using Hibernate in a web application

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic