This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Spring] Exception while creating the session factory
 
Similar Threads
My class is not mapped
hibernate/Code Coverage(Emma plugin)
Problem with select query in hibernate
org.hibernate.hql.ast.QuerySyntaxException: INFORMATION_SCHEMA.SYSTEM_ALIASES is not mapped.
Sequence Problem