CurrentSessionContext « Exception « JPA Q&A





1. Why do I get org.hibernate.HibernateException: No CurrentSessionContext configured    stackoverflow.com

I'm writing a simple project, a business app written in Swing, using Hibernate for back-end. I come from Spring, that gave me easy ways to use hibernate and transactions. Anyway I ...

2. No CurrentSessionContext configured Error    forum.hibernate.org

public class Main { public static void main(String[] args) { System.out.println("Step 1"); SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); ...

3. Exception: No CurrentSessionContext configured!    forum.hibernate.org

Hibernate version: last Hello I'm using Eclipse, Hibernate and Jboss (all the last ver.) Now I get a new exception " No CurrentSessionContext configured!" I've these classes ---HIBERNATESERVLET-- public class HibernateServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { public HibernateServlet() { super(); } protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("CIAO"); ToolStudente ts = new ToolStudente(); List studenti = ts.listaStudenti(); ...