]
Gavin King closed JBSEAM-428.
-----------------------------
Resolution: Rejected
Go to the forum, please.
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.0.BETA1
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
Attachments: files.zip
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.
The complete stack trace is
C:\jetty-6.0.1>java -jar start.jar
2006-10-19 14:45:15.703::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2006-10-19 14:45:15.906::INFO: jetty-6.0.1
2006-10-19 14:45:16.328::INFO: Extract
jar:file:/C:/jetty-6.0.1/webapps/jboss-seam-hibernate.war!/ to C:\DOCUME~1\CR005
70\IMPOST~1\Temp\Jetty_0_0_0_0_8080__jboss-seam-hibernate_\webapp
14:45:18,765 INFO [ServletContextListener] Welcome to Seam 1.1.0.BETA
14:45:18,781 INFO [Initialization] reading components.xml
14:45:18,875 INFO [Initialization] reading properties from: /seam.properties
14:45:18,875 INFO [Initialization] reading properties from: /jndi.properties
14:45:18,875 INFO [Initialization] initializing Seam
14:45:18,906 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION,
type: JAVA_BEAN, class: org.jbos
s.seam.core.Init
14:45:18,921 INFO [Component] Component: expressions, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core.E
xpressions
14:45:18,921 INFO [Component] Component: org.jboss.seam.core.pages, scope: APPLICATION,
type: JAVA_BEAN, class: org.jbo
ss.seam.core.Pages
14:45:18,937 INFO [Component] Component: events, scope: APPLICATION, type: JAVA_BEAN,
class: org.jboss.seam.core.Events
14:45:18,937 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope:
SESSION, type: JAVA_BEAN, clas
s: org.jboss.seam.core.ConversationEntries
14:45:18,937 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT,
type: JAVA_BEAN, class: org.jboss.s
eam.core.Manager
14:45:18,953 INFO [Component] Component: switcher, scope: PAGE, type: JAVA_BEAN, class:
org.jboss.seam.core.Switcher
14:45:18,953 INFO [Component] Component: redirect, scope: CONVERSATION, type: JAVA_BEAN,
class: org.jboss.seam.core.Red
irect
14:45:18,953 INFO [Component] Component: httpError, scope: APPLICATION, type: JAVA_BEAN,
class: org.jboss.seam.core.Htt
pError
14:45:18,953 INFO [Component] Component: userPrincipal, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core
.UserPrincipal
14:45:18,968 INFO [Component] Component: isUserInRole, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core.
IsUserInRole
14:45:18,968 INFO [Component] Component: conversation, scope: CONVERSATION, type:
JAVA_BEAN, class: org.jboss.seam.core
.Conversation
14:45:18,984 INFO [Component] Component: conversationList, scope: PAGE, type: JAVA_BEAN,
class: org.jboss.seam.core.Con
versationList
14:45:18,984 INFO [Component] Component: conversationStack, scope: PAGE, type:
JAVA_BEAN, class: org.jboss.seam.core.Co
nversationStack
14:45:19,000 INFO [Component] Component: facesContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core.
FacesContext
14:45:19,000 INFO [Component] Component: pageContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core.P
ageContext
14:45:19,000 INFO [Component] Component: eventContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.core.
EventContext
14:45:19,015 INFO [Component] Component: sessionContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam.cor
e.SessionContext
14:45:19,015 INFO [Component] Component: applicationContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.seam
.core.ApplicationContext
14:45:19,015 INFO [Component] Component: conversationContext, scope: APPLICATION, type:
JAVA_BEAN, class: org.jboss.sea
m.core.ConversationContext
14:45:19,031 INFO [Component] Component: businessProcessContext, scope: APPLICATION,
type: JAVA_BEAN, class: org.jboss.
seam.core.BusinessProcessContext
14:45:19,031 INFO [Component] Component: locale, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.core.Locale
14:45:19,031 INFO [Component] Component: messages, scope: SESSION, type: JAVA_BEAN,
class: org.jboss.seam.core.Messages
14:45:19,046 INFO [Component] Component: theme, scope: SESSION, type: JAVA_BEAN, class:
org.jboss.seam.theme.Theme
14:45:19,046 INFO [Component] Component: themeSelector, scope: SESSION, type: JAVA_BEAN,
class: org.jboss.seam.theme.Th
emeSelector
14:45:19,062 INFO [Component] Component: interpolator, scope: STATELESS, type:
JAVA_BEAN, class: org.jboss.seam.core.In
terpolator
14:45:19,062 INFO [Component] Component: facesMessages, scope: CONVERSATION, type:
JAVA_BEAN, class: org.jboss.seam.cor
e.FacesMessages
14:45:19,062 INFO [Component] Component: resourceBundle, scope: SESSION, type:
JAVA_BEAN, class: org.jboss.seam.core.Re
sourceBundle
14:45:19,078 INFO [Component] Component: localeSelector, scope: SESSION, type:
JAVA_BEAN, class: org.jboss.seam.core.Lo
caleSelector
14:45:19,078 INFO [Component] Component: uiComponent, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.core.UiC
omponent
14:45:19,093 INFO [Component] Component: param, scope: EVENT, type: JAVA_BEAN, class:
org.jboss.seam.core.RenderParamet
ers
14:45:19,093 INFO [Component] Component: oeg.jboss.seam.core.safeActions, scope:
APPLICATION, type: JAVA_BEAN, class: o
rg.jboss.seam.core.SafeActions
14:45:19,109 INFO [Component] Component:
org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, ty
pe: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
14:45:19,109 INFO [Component] Component: org.jboss.seam.remoting.remotingConfig, scope:
APPLICATION, type: JAVA_BEAN, c
lass: org.jboss.seam.remoting.RemotingConfig
14:45:19,125 INFO [Component] Component: org.jboss.seam.core.persistenceContexts, scope:
CONVERSATION, type: JAVA_BEAN,
class: org.jboss.seam.core.PersistenceContexts
14:45:19,125 INFO [Component] Component: currentDate, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.framewor
k.CurrentDate
14:45:19,156 INFO [Component] Component: currentTime, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.framewor
k.CurrentTime
14:45:19,171 INFO [Component] Component: currentDatetime, scope: STATELESS, type:
JAVA_BEAN, class: org.jboss.seam.fram
ework.CurrentDatetime
14:45:19,187 INFO [Component] Component: org.jboss.seam.securityManager, scope:
APPLICATION, type: JAVA_BEAN, class: or
g.jboss.seam.security.SeamSecurityManager
14:45:19,187 INFO [Component] Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN,
class: org.jboss.seam.core.Poj
oCache
14:45:19,218 INFO [Component] Component: org.jboss.seam.debug.introspector, scope:
EVENT, type: JAVA_BEAN, class: org.j
boss.seam.debug.Introspector
14:45:19,234 INFO [Component] Component: org.jboss.seam.debug.contexts, scope:
APPLICATION, type: JAVA_BEAN, class: org
.jboss.seam.debug.Contexts
14:45:19,250 INFO [Component] Component: bookingDatabase, scope: CONVERSATION, type:
JAVA_BEAN, class: org.jboss.seam.c
ore.ManagedHibernateSession
14:45:19,250 INFO [Component] Component: hibernateSessionFactory, scope: APPLICATION,
type: JAVA_BEAN, class: org.jboss
.seam.core.HibernateSessionFactory
14:45:19,250 INFO [Component] Component: org.jboss.seam.core.microcontainer, scope:
APPLICATION, type: JAVA_BEAN, class
: org.jboss.seam.core.Microcontainer
14:45:19,265 INFO [Scanner] scanning: /C:/Documents and Settings/CR00570/Impostazioni
locali/Temp/Jetty_0_0_0_0_8080__j
boss-seam-hibernate_/webapp/WEB-INF/lib/jboss-seam-hibernate.jar
14:45:19,421 INFO [Component] Component: user, scope: SESSION, type: ENTITY_BEAN, class:
org.jboss.seam.example.hiberna
te.User
14:45:19,437 INFO [Component] Component: logout, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.example.hiber
nate.LogoutAction
14:45:19,453 INFO [Component] Component: hotelBooking, scope: CONVERSATION, type:
JAVA_BEAN, class: org.jboss.seam.exam
ple.hibernate.HotelBookingAction
14:45:19,484 WARN [Component] Component class should be serializable: config
14:45:19,484 INFO [Component] Component: config, scope: SESSION, type: JAVA_BEAN, class:
org.jboss.seam.example.hiberna
te.ConfigBean
14:45:19,500 INFO [Component] Component: login, scope: STATELESS, type: JAVA_BEAN,
class: org.jboss.seam.example.hibern
ate.LoginAction
14:45:19,500 INFO [Component] Component: changePassword, scope: EVENT, type: JAVA_BEAN,
class: org.jboss.seam.example.h
ibernate.ChangePasswordAction
14:45:19,515 INFO [Component] Component: booking, scope: CONVERSATION, type:
ENTITY_BEAN, class: org.jboss.seam.example
.hibernate.Booking
14:45:19,546 WARN [Component] Component class should be serializable: phone
14:45:19,546 INFO [Component] Component: phone, scope: CONVERSATION, type: ENTITY_BEAN,
class: org.jboss.seam.example.h
ibernate.Phone
14:45:19,546 INFO [Component] Component: register, scope: EVENT, type: JAVA_BEAN, class:
org.jboss.seam.example.hiberna
te.RegisterAction
14:45:19,562 INFO [Component] Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN,
class: org.jboss.seam.example.h
ibernate.Hotel
14:45:19,578 INFO [Component] Component: bookingList, scope: SESSION, type: JAVA_BEAN,
class: org.jboss.seam.example.hi
bernate.BookingListAction
14:45:19,593 INFO [Lifecycle] starting up: isUserInRole
14:45:19,593 INFO [Lifecycle] starting up: conversationContext
14:45:19,593 INFO [Lifecycle] starting up: applicationContext
14:45:19,593 INFO [Lifecycle] starting up: org.jboss.seam.core.microcontainer
14:45:20,015 WARN [BeanSchemaBinding] You should use the 2.0 version of the
Microcontainer xml. xmlns='urn:jboss:bean-d
eployer:2.0'
14:45:20,109 INFO [TransactionManagerFactory] starting JTA transaction manager
14:45:20,203 INFO [DataSourceFactory] starting Datasource at JNDI name:
java:/hibernateDatasource
14:45:20,250 INFO [LocalTxDataSource] Bound datasource to JNDI name
'java:/hibernateDatasource'
14:45:20,281 INFO [Version] Hibernate Annotations 3.2.0.CR1
14:45:20,281 INFO [Environment] Hibernate 3.2 cr2
14:45:20,296 INFO [Environment] hibernate.properties not found
14:45:20,296 INFO [Environment] Bytecode provider name : cglib
14:45:20,312 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
14:45:20,359 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
14:45:20,359 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
14:45:20,406 INFO [Configuration] Configured SessionFactory: java:/bookingDatabase
14:45:20,453 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Hotel
14:45:20,484 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Hotel on
table Hotel
14:45:20,531 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Phone
14:45:20,531 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Phone on
table Phone
14:45:20,546 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.User
14:45:20,546 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.User on
table Users
14:45:20,546 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Booking
14:45:20,546 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Booking on
table Booking
14:45:20,609 INFO [CollectionBinder] Mapping collection:
org.jboss.seam.example.hibernate.Hotel.phones -> Phone
14:45:20,671 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:20,671 INFO [DatasourceConnectionProvider] Using datasource:
java:/hibernateDatasource
14:45:21,031 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
14:45:21,031 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version:
mysql-connector-java-3.1.13 ( $Date: 20
05-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
14:45:21,046 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
14:45:21,046 INFO [TransactionFactoryFactory] Transaction strategy:
org.hibernate.transaction.JTATransactionFactory
14:45:21,062 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:21,062 INFO [TransactionManagerLookupFactory] instantiating
TransactionManagerLookup: org.hibernate.transaction.J
BossTransactionManagerLookup
14:45:21,062 INFO [TransactionManagerLookupFactory] instantiated
TransactionManagerLookup
14:45:21,062 INFO [TransactionManagerLookupFactory] instantiating
TransactionManagerLookup: org.hibernate.transaction.J
BossTransactionManagerLookup
14:45:21,078 INFO [TransactionManagerLookupFactory] instantiated
TransactionManagerLookup
14:45:21,078 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
14:45:21,078 INFO [SettingsFactory] Automatic session close at end of transaction:
disabled
14:45:21,078 INFO [SettingsFactory] JDBC batch size: 15
14:45:21,078 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
14:45:21,093 INFO [SettingsFactory] Scrollable result sets: enabled
14:45:21,093 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
14:45:21,093 INFO [SettingsFactory] Connection release mode: after_statement
14:45:21,093 INFO [SettingsFactory] Maximum outer join fetch depth: 2
14:45:21,093 INFO [SettingsFactory] Default batch fetch size: 1
14:45:21,093 INFO [SettingsFactory] Generate SQL with comments: disabled
14:45:21,093 INFO [SettingsFactory] Order SQL updates by primary key: disabled
14:45:21,109 INFO [SettingsFactory] Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
14:45:21,109 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
14:45:21,109 INFO [SettingsFactory] Query language substitutions: {}
14:45:21,109 INFO [SettingsFactory] Second-level cache: enabled
14:45:21,109 INFO [SettingsFactory] Query cache: disabled
14:45:21,109 INFO [SettingsFactory] Cache provider:
org.hibernate.cache.HashtableCacheProvider
14:45:21,125 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
14:45:21,125 INFO [SettingsFactory] Structured second-level cache entries: disabled
14:45:21,125 INFO [SettingsFactory] Statistics: disabled
14:45:21,125 INFO [SettingsFactory] Deleted entity synthetic identifier rollback:
disabled
14:45:21,140 INFO [SettingsFactory] Default entity-mode: pojo
14:45:21,171 INFO [SessionFactoryImpl] building session factory
14:45:21,593 INFO [SessionFactoryObjectFactory] Factory name: java:/bookingDatabase
14:45:21,593 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:21,593 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name:
java:/bookingDatabase
14:45:21,593 WARN [SessionFactoryObjectFactory] InitialContext did not implement
EventContext
14:45:21,609 INFO [SchemaUpdate] Running hbm2ddl schema update
14:45:21,609 INFO [SchemaUpdate] fetching database metadata
14:45:21,609 INFO [SchemaUpdate] updating schema
14:45:21,671 INFO [TableMetadata] table found: booking.booking
14:45:21,671 INFO [TableMetadata] columns: [beds, creditcard, checkoutdate,
creditcardexpiryyear, user_username, credit
cardname, creditcardexpirymonth, checkindate, smoking, hotel_id, id]
14:45:21,671 INFO [TableMetadata] foreign keys: [fk6713a0399d0270b, fk6713a03980734ea4]
14:45:21,671 INFO [TableMetadata] indexes: [primary, fk6713a0399d0270b,
fk6713a03980734ea4]
14:45:21,703 INFO [TableMetadata] table found: booking.hotel
14:45:21,703 INFO [TableMetadata] columns: [address, state, zip, name, city, id]
14:45:21,703 INFO [TableMetadata] foreign keys: []
14:45:21,703 INFO [TableMetadata] indexes: [primary]
14:45:21,718 INFO [TableMetadata] table found: booking.phone
14:45:21,718 INFO [TableMetadata] columns: [num, hotel_id, id]
14:45:21,734 INFO [TableMetadata] foreign keys: [fk4984d4e9d0270b]
14:45:21,734 INFO [TableMetadata] indexes: [fk4984d4e9d0270b, primary]
14:45:21,750 INFO [TableMetadata] table found: booking.users
14:45:21,750 INFO [TableMetadata] columns: [password, username, name]
14:45:21,750 INFO [TableMetadata] foreign keys: []
14:45:21,750 INFO [TableMetadata] indexes: [primary]
14:45:21,750 INFO [SchemaUpdate] schema update complete
14:45:21,765 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:21,765 INFO [Lifecycle] starting up: hibernateSessionFactory
14:45:21,765 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
14:45:21,781 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
14:45:21,796 INFO [Configuration] Configured SessionFactory: java:/bookingDatabase
14:45:21,796 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Hotel
14:45:21,796 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Hotel on
table Hotel
14:45:21,812 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Phone
14:45:21,812 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Phone on
table Phone
14:45:21,812 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.User
14:45:21,812 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.User on
table Users
14:45:21,812 INFO [AnnotationBinder] Binding entity from annotated class:
org.jboss.seam.example.hibernate.Booking
14:45:21,828 INFO [EntityBinder] Bind entity org.jboss.seam.example.hibernate.Booking on
table Booking
14:45:21,828 INFO [CollectionBinder] Mapping collection:
org.jboss.seam.example.hibernate.Hotel.phones -> Phone
14:45:21,843 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:21,843 INFO [DatasourceConnectionProvider] Using datasource:
java:/hibernateDatasource
14:45:21,843 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
14:45:21,859 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version:
mysql-connector-java-3.1.13 ( $Date: 20
05-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
14:45:21,859 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
14:45:21,859 INFO [TransactionFactoryFactory] Transaction strategy:
org.hibernate.transaction.JTATransactionFactory
14:45:21,859 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:21,875 INFO [TransactionManagerLookupFactory] instantiating
TransactionManagerLookup: org.hibernate.transaction.J
BossTransactionManagerLookup
14:45:21,875 INFO [TransactionManagerLookupFactory] instantiated
TransactionManagerLookup
14:45:21,875 INFO [TransactionManagerLookupFactory] instantiating
TransactionManagerLookup: org.hibernate.transaction.J
BossTransactionManagerLookup
14:45:21,875 INFO [TransactionManagerLookupFactory] instantiated
TransactionManagerLookup
14:45:21,875 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
14:45:21,890 INFO [SettingsFactory] Automatic session close at end of transaction:
disabled
14:45:21,890 INFO [SettingsFactory] JDBC batch size: 15
14:45:21,890 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
14:45:21,890 INFO [SettingsFactory] Scrollable result sets: enabled
14:45:21,890 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
14:45:21,890 INFO [SettingsFactory] Connection release mode: after_statement
14:45:21,890 INFO [SettingsFactory] Maximum outer join fetch depth: 2
14:45:21,906 INFO [SettingsFactory] Default batch fetch size: 1
14:45:21,906 INFO [SettingsFactory] Generate SQL with comments: disabled
14:45:21,906 INFO [SettingsFactory] Order SQL updates by primary key: disabled
14:45:21,906 INFO [SettingsFactory] Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
14:45:21,906 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
14:45:21,906 INFO [SettingsFactory] Query language substitutions: {}
14:45:21,921 INFO [SettingsFactory] Second-level cache: enabled
14:45:21,921 INFO [SettingsFactory] Query cache: disabled
14:45:21,921 INFO [SettingsFactory] Cache provider:
org.hibernate.cache.HashtableCacheProvider
14:45:21,921 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
14:45:21,921 INFO [SettingsFactory] Structured second-level cache entries: disabled
14:45:21,921 INFO [SettingsFactory] Statistics: disabled
14:45:21,921 INFO [SettingsFactory] Deleted entity synthetic identifier rollback:
disabled
14:45:21,937 INFO [SettingsFactory] Default entity-mode: pojo
14:45:21,937 INFO [SessionFactoryImpl] building session factory
14:45:22,000 INFO [SessionFactoryObjectFactory] Factory name: java:/bookingDatabase
14:45:22,000 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:22,000 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name:
java:/bookingDatabase
14:45:22,000 WARN [SessionFactoryObjectFactory] InitialContext did not implement
EventContext
14:45:22,000 INFO [SchemaUpdate] Running hbm2ddl schema update
14:45:22,015 INFO [SchemaUpdate] fetching database metadata
14:45:22,015 INFO [SchemaUpdate] updating schema
14:45:22,046 INFO [TableMetadata] table found: booking.booking
14:45:22,046 INFO [TableMetadata] columns: [beds, creditcard, checkoutdate,
creditcardexpiryyear, user_username, credit
cardname, creditcardexpirymonth, checkindate, smoking, hotel_id, id]
14:45:22,046 INFO [TableMetadata] foreign keys: [fk6713a0399d0270b, fk6713a03980734ea4]
14:45:22,046 INFO [TableMetadata] indexes: [primary, fk6713a0399d0270b,
fk6713a03980734ea4]
14:45:22,062 INFO [TableMetadata] table found: booking.hotel
14:45:22,062 INFO [TableMetadata] columns: [address, state, zip, name, city, id]
14:45:22,078 INFO [TableMetadata] foreign keys: []
14:45:22,078 INFO [TableMetadata] indexes: [primary]
14:45:22,093 INFO [TableMetadata] table found: booking.phone
14:45:22,093 INFO [TableMetadata] columns: [num, hotel_id, id]
14:45:22,093 INFO [TableMetadata] foreign keys: [fk4984d4e9d0270b]
14:45:22,093 INFO [TableMetadata] indexes: [fk4984d4e9d0270b, primary]
14:45:22,109 INFO [TableMetadata] table found: booking.users
14:45:22,109 INFO [TableMetadata] columns: [password, username, name]
14:45:22,125 INFO [TableMetadata] foreign keys: []
14:45:22,125 INFO [TableMetadata] indexes: [primary]
14:45:22,125 INFO [SchemaUpdate] schema update complete
14:45:22,125 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOn
lyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
14:45:22,125 INFO [Lifecycle] starting up: userPrincipal
14:45:22,140 INFO [Lifecycle] starting up: sessionContext
14:45:22,140 INFO [Lifecycle] starting up: facesContext
14:45:22,140 INFO [Lifecycle] starting up: businessProcessContext
14:45:22,140 INFO [Lifecycle] starting up: eventContext
14:45:22,140 INFO [Lifecycle] starting up: expressions
14:45:22,140 INFO [Lifecycle] starting up: pageContext
14:45:22,156 INFO [Initialization] done initializing Seam
14:45:22,218 INFO [FacesConfigurator] Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
14:45:22,281 INFO [FacesConfigurator] Reading config
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20loc
ali/Temp/Jetty_0_0_0_0_8080__jboss-seam-hibernate_/webapp/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml
14:45:22,312 INFO [FacesConfigurator] Reading config
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20loc
ali/Temp/Jetty_0_0_0_0_8080__jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
14:45:22,328 INFO [FacesConfigurator] Reading config
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20loc
ali/Temp/Jetty_0_0_0_0_8080__jboss-seam-hibernate_/webapp/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
14:45:22,343 INFO [FacesConfigurator] Reading config
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20loc
ali/Temp/Jetty_0_0_0_0_8080__jboss-seam-hibernate_/webapp/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
14:45:22,375 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
14:45:22,421 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting
locale to default locale : it_IT
14:45:22,546 INFO [StartupServletContextListener] ServletContext 'C:\Documents and
Settings\CR00570\Impostazioni locali
\Temp\Jetty_0_0_0_0_8080__jboss-seam-hibernate_\webapp\' initialized.
14:45:22,562 INFO [StartupServletContextListener] Serialization provider : class
org.apache.myfaces.shared_impl.util.se
rial.DefaultSerialFactory
14:45:22,562 INFO [StartupServletContextListener] MyFaces already initialized
14:45:22,562 INFO [StartupServletContextListener] ServletContext 'C:\Documents and
Settings\CR00570\Impostazioni locali
\Temp\Jetty_0_0_0_0_8080__jboss-seam-hibernate_\webapp\' initialized.
14:45:22,562 INFO [StartupServletContextListener] Serialization provider : class
org.apache.myfaces.shared_impl.util.se
rial.DefaultSerialFactory
2006-10-19 14:45:22.906::INFO: Started SelectChannelConnector @ 0.0.0.0:8080
14:45:26,390 INFO [Events] no events.xml file found
14:45:26,421 INFO [Pages] reading pages.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/seam.taglib.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
19-ott-2006 14.45.26 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from:
jar:file:/C:/Documents%20and%20Settings/CR00570/Impostazioni%20locali/Temp/Jetty_0_0_0_0_8080_
_jboss-seam-hibernate_/webapp/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
INIT!
HOTELS #5: Hotel Rouge - 0
14:45:27,375 INFO [MyfacesConfig] No context init parameter
'org.apache.myfaces.PRETTY_HTML' found, using default value
true
14:45:27,375 INFO [MyfacesConfig] No context init parameter
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
value true
14:45:27,375 INFO [MyfacesConfig] Tomahawk jar not available. Autoscrolling,
DetectJavascript, AddResourceClass and Che
ckExtensionsFilter are disabled now.
14:45:27,468 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6)
afterPhase
org.hibernate.SessionException: Session is closed!
at
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:867)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:788)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:781)
at
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.entityIdsToRefs(ManagedEntityIdentityInterceptor
.java:161)
at
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.ja
va:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor
.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessIntercepto
r.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:26)
at org.jboss.seam.util.Work.workInTransaction(Work.java:31)
at
org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalIn
terceptor.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.j
ava:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:17)
at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
at
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
at
org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:103)
at
org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:69)
at
org.jboss.seam.example.hibernate.ConfigBean$$EnhancerByCGLIB$$6f26b289.equals(<generated>)
at
org.mortbay.jetty.servlet.AbstractSessionManager$Session.setAttribute(AbstractSessionManager.java:860)
at
org.jboss.seam.servlet.ServletSessionImpl.setAttribute(ServletSessionImpl.java:46)
at org.jboss.seam.contexts.WebSessionContext.flush(WebSessionContext.java:97)
at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:364)
at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:259)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:100)
at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
at
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
at
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:33)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:269)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
2006-10-19 14:45:43.000::INFO: Shutdown hook executing
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: