[jboss-jira] [JBoss JIRA] Created: (JBSEAM-428) Hibernate Session closed in Seam produced component with session scope

fguerzoni (JIRA) jira-events at jboss.com
Thu Oct 19 09:14:41 EDT 2006


Hibernate Session closed in Seam produced component with session scope
----------------------------------------------------------------------

                 Key: JBSEAM-428
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-428
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1
         Environment: WIN XP SP2, jdk1.5.0_04, SEAM from CVS as 18 october 2006, Jetty-6.0.1, Tomcat-5.5.17.
Seam is used configured to work in SE environment (with microcontainer)
            Reporter: fguerzoni


I get org.hibernate.SessionException: Session is closed! when accessing my project home page.
I've sligthly modified 'hibernate' example in order to match my use case.

1) The problem arises when home.xhtml is rendered and a Config javabean is created by Seam. ConfigBean has Session scope and tries to access database to get some infos. 
2) The problem arises only when the entity that results from query has a relationship (eg one-to-many) to other entities.
3) The problem arises only when the object istance returned by query is a global property of ConfigBean.
4) The problem arises only in Jetty and not in Tomcat.

In oder to reach 1) I've added a property (nickName) in LoginAction which is rendered by home.xhtml. Seam then tries to create the ConfigBean I've put in example.
In order to reach 2) I've created a new entity Phone. Hotel has a one-to-many relationship with Phone entities.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list