aspose file tools*
The moose likes Spring and the fly likes [Spring] Exception while creating the session factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "[Spring] Exception while creating the session factory" Watch "[Spring] Exception while creating the session factory" New topic
Author

[Spring] Exception while creating the session factory

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
I am using Spring/Hibernate in my project. When I start the Tomcat server I see the below exception.
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
x-servlet.xml



If I comment out 'configLocation' property altogether then it can create the session factory without any error.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I would say that there's something wrong with your hibernate.cfg.xml, perhaps a query ? (just guessing)


[My Blog]
All roads lead to JavaRanch
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
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.
 
 
subject: [Spring] Exception while creating the session factory