Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Spring] Exception while creating the session factory

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Spring/Hibernate in my project. When I start the Tomcat server I see the below exception.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
x-servlet.xml



If I comment out 'configLocation' property altogether then it can create the session factory without any error.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say that there's something wrong with your hibernate.cfg.xml, perhaps a query ? (just guessing)
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spot on!
How did you guess that? From this,


Actually it doesn't tell explicitly that there is some error with your query. but many times it does that if you have some special characters or something that is not good for query.

Anyways thanks Christophe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic