Issue with Seam and Tomcat 6 during tomcat startup
lle Mar 9, 2007 3:19 PMHi all,
I just upgraded my working webapps with Seam 1.1.5GA from Tomcat 5.5 to Tomcat 6 and I encountered this problem when starting up Tomcat 6:
After initializing Seam successfully, Seam starts to undeploying/destroying application context and eventually closing the Hibernate session factory. So, my application can't be used at all.
Here is the stacktrace starting from successful Seam initialization:
2007.03.09 12:04:47,888 INFO [Initialization] done initializing Seam 2007.03.09 12:04:47,903 DEBUG [Lifecycle] Undeploying, destroying application context 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroyContext.APPLICATION 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.safeActions.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.microcontainer.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: appManager 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.appManager 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.conversationContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: user.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.framework.currentDate.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.exceptions.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: account.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: detailsfilter.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: selectedAccount.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.events 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.events 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: renderer.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.theme.themeSelector.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.localeSelector.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.httpError.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.conversation.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.facesPage.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.switcher.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.framework.currentTime.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.mail.mailSession.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: detailsearch.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.init.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.expressions.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.facesContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.conversationList.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.locale.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: hostApp.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.debug.introspector.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.isUserInRole.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.pageContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: reportfilter.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: hibernateSessionFactory 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.hibernateSessionFactory 2007.03.09 12:04:47,903 INFO [SessionFactoryImpl] closing 2007.03.09 12:04:47,903 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: java:/gadb 2007.03.09 12:04:47,903 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 2007.03.09 12:04:47,903 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: java:/gadb 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.conversationEntries.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: documentStore.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.redirect.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: alertsTable.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.pojoCache.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.uiComponent.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.events.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.messages.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.apache.AnnotationProcessor 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.interpolator.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: accountfilter.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: sessionfilter.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: accountTable.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: alertsview.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: logout.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.apache.catalina.WELCOME_FILES 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: reportsview.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.sessionContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.facesMessages.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.manager.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: selectedSession.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.validation.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.validators.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: gadb.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.init 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.init 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.microcontainer 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.microcontainer 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.pages.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.methodContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.remoting.remotingConfig.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: accountsearch.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: selectedAlertSession.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.userPrincipal.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: reportsaction.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: login.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.debug.contexts.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.conversationStack.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.persistenceContexts.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.eventContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.resourceBundle.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.theme.theme.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.properties 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.framework.currentDatetime.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.apache.catalina.jsp_classpath 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: javax.servlet.context.tempdir 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: appManager.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.businessProcessContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.apache.catalina.resources 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: org.jboss.seam.core.applicationContext.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: hibernateSessionFactory.component 2007.03.09 12:04:47,903 DEBUG [Contexts] destroying: alertssearch.component 2007.03.09 12:04:47,903 DEBUG [Events] Processing event:org.jboss.seam.postDestroyContext.APPLICATION
Does any of you know what's going on and why such an issue occurs? Btw, I do have an application-scoped component in case you wonder.
Thanks
ly