File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes running before I can crawl ( or  how to add Spring to an existing Hibernate standalone app) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "running before I can crawl ( or  how to add Spring to an existing Hibernate standalone app)" Watch "running before I can crawl ( or  how to add Spring to an existing Hibernate standalone app)" New topic
Author

running before I can crawl ( or how to add Spring to an existing Hibernate standalone app)

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 122
So I'm trying to transmorgify a working standalone Java/Hibernate/MySQL app to use Spring.
I've got this far by cutting and pasting snippets from all over cyberspace and RTFMing a bit:

ApplicationContext.xml

and
StateDAOHibernate

and StateDAO

and State

and finally my app
TheNewApp.java


but the app barfs on the line indicated with the following stacktrace


so something's messed-up or incomplete with my configuration but I can't spot it (hmmm, time to RTM more).
In the meantime can someone tell me what I need to get this working?

As always, all tips/hints/constructive criticism/and especially examples are all welcome.

TIA,

Still-learning Stuart
Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 122
A hint received from someone in another forum led to the solution: here's the updated ApplicationContext.xml



Thanks for looking,

Still-learning Stuart>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: running before I can crawl ( or how to add Spring to an existing Hibernate standalone app)
 
Similar Threads
totally stumped by synchronization.afterCommit error
utterly stumped - HQL query stalls program
illegalArgumentException, HSQLDB, and Hibernate
Hibernate : Empty Table recreated when spring starts
org.hibernate.MappingException: Unknown entity: