-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Spring Struts and Hibernate
PostPosted: Sun Nov 16, 2003 11:54 am 
Newbie

Joined: Sun Nov 16, 2003 11:44 am
Posts: 7
Trying to use Spring with Struts and Hibernate. I have a struts project that uses Hibernate, and I am trying to use Spring for resource configuration (and using HibernateTemplate)

if I subclass HibernateDaoSupport and try to get hibernate template and pass it a session object, it throws a null pointer exception.

the only way I have found to get this done is make my own Dao that has a Static Session Factory. otherwise i get a new instance of a DAO, and its SessionFactory is null.
(Spring does init it at startup, but doesn't do every instance).

what am i doing wrong?

any hints?

thanks,
-F


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 16, 2003 5:48 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 6:04 am
Posts: 161
Location: Linz, Austria
See my corresponding post in the Spring forum. As I assume that your Spring configuration does not work, let's discuss this issue there.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.