I am trying to use hibernate with my struts project. The problem I keep on getting :

javax.servlet.ServletException: org.hibernate.SessionException: Session is 
closed!
        
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
        
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
        
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)
        
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)


This occurs when: session.commit(something);


Is this a struts 2 issue ? IF yes, then how to get s2 to work with hibernate. I have googled this, and every thing suggest using spring. This is not an option for me.

Can any one help ?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to