10 Replies Latest reply on May 2, 2006 12:27 PM by Gavin King

    jboss-seam-1.0.0.CR2 infinite loop instantiating localeSelec

    Carsten Hoehne Master

      Hello,
      i tried to migrate my application to jboss-seam-1.0.0.CR2.
      But i get an infinite loop when seam tries to instantiate localeSelector

      With seam 1.0beta2 the application runs well on Tomcat 5.5.15 with hibernate deployed in the jboss microcontainer.

      After copying these jars
      jboss-seam.jar
      jboss-ejb3-all.jar, jbpm-3.1.1.jar, portlet-api-lib.jar, thirdparty-all.jar

      to the WEB-INF/lib folder of the application i deleted in this folder all jboss*.jars and some others which seems to be included in thirdparty-all.jar.

      Starting Tomcat results in nothing special. But pointing to the application in a webbrowser results in an infinite loop.
      I tried to deploy the hibernate example of Seam. This example does run well.
      So what is special about my app (especially the first page)?
      1. I do use <f:loadbundle> and all my labels are fetched from a resourcebundle.
      2. In faces.config.xml there is this configuration

      <application>
       <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
       <message-bundle>lims</message-bundle>
       <locale-config>
       <default-locale>en</default-locale>
       <supported-locale>en</supported-locale>
       <supported-locale>de</supported-locale>
       <supported-locale>fr</supported-locale>
       </locale-config>
       </application>
      

      If i remove the locale-config and message-bundle i get the same result: infinite loop

      Why is localeSelector instansiated and does this result in an infinite loop?
      Which jars are included in thirdparty-all.jar in case i have forgotten to delete a separate jar?
      Any clue?
      Ciao,
      Carsten
      3:15:45,562 DEBUG org.jboss.seam.Component: class=class org.jboss.seam.core.Microcontainer;
      13:15:45,562 DEBUG org.jboss.seam.Component: instantiating Seam component: userPrincipal
      13:15:45,562 DEBUG org.jboss.seam.Component:
      13:15:45,562 DEBUG org.jboss.seam.Component: instantiating Seam component: sessionContext
      13:15:45,562 DEBUG org.jboss.seam.Component:
      13:15:45,562 DEBUG org.jboss.seam.Component: instantiating Seam component: conversationContext
      13:15:45,562 DEBUG org.jboss.seam.Component:
      13:15:45,562 DEBUG org.jboss.seam.Component: instantiating Seam component: statelessContext
      13:15:45,578 DEBUG org.jboss.seam.Component:
      13:15:45,578 DEBUG org.jboss.seam.Component: instantiating Seam component: isUserInRole
      13:15:45,578 DEBUG org.jboss.seam.Component:
      13:15:45,578 DEBUG org.jboss.seam.Component: instantiating Seam component: applicationContext
      13:15:45,578 DEBUG org.jboss.seam.Component: class=class org.jboss.seam.contexts.WebApplicationContext; names=[Ljava.lang.String;@cef147; type=APPLICATION;
      13:15:45,578 DEBUG org.jboss.seam.Component: instantiating Seam component: businessProcessContext
      13:15:45,578 DEBUG org.jboss.seam.Component:
      13:15:45,578 INFO org.jboss.seam.init.Initialization: done initializing Seam
      13:15:45,578 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Starting filters
      13:15:45,578 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Starting filter 'SeamRedirectFilter'
      13:15:45,578 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Starting filter 'extensionsFilter'
      13:15:45,593 DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/baz]: Starting filter 'SeamExceptionFilter'
      13:15:45,593 DEBUG javax.faces.webapp.FacesServlet: init begin
      13:15:45,593 DEBUG javax.faces.webapp.FacesServlet: init begin
      13:15:45,593 DEBUG javax.faces.webapp.FacesServlet: init end
      13:15:45,593 DEBUG javax.faces.webapp.FacesServlet: init end
      26.04.2006 13:15:45 org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      26.04.2006 13:15:46 org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      26.04.2006 13:15:46 org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/31 config=null
      26.04.2006 13:15:46 org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      26.04.2006 13:15:46 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 27188 ms
      13:16:16,843 DEBUG org.jboss.resource.connectionmanager.IdleRemover: run: IdleRemover notifying pools, interval: 50000
      13:16:20,140 DEBUG javax.faces.webapp.FacesServlet: service begin
      13:16:20,140 DEBUG javax.faces.webapp.FacesServlet: service begin
      13:16:20,156 DEBUG org.jboss.seam.util.Naming: JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      13:16:20,156 DEBUG org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener: beginning transaction
      13:16:20,156 DEBUG org.jboss.seam.util.Naming: JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      13:16:20,203 DEBUG org.jboss.seam.jsf.SeamPhaseListener: before phase: RESTORE_VIEW(1)
      13:16:20,203 DEBUG org.jboss.seam.contexts.Lifecycle: >>> Begin web request
      13:16:20,218 DEBUG org.jboss.seam.contexts.Lifecycle: Session started
      13:16:20,234 DEBUG org.jboss.seam.Component: instantiating Seam component: localeSelector
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,281 DEBUG org.jboss.seam.Component:
      13:16:20,296 DEBUG org.jboss.seam.Component:
      13:16:20,296 DEBUG org.jboss.seam.Component:
      13:16:20,296 DEBUG org.jboss.seam.Component:
      13:16:20,296 DEBUG org.jboss.seam.Component:
      13:16:20,296 DEBUG org.jboss.seam.Component:
      13:16:20,312 DEBUG org.jboss.seam.Component:
      13:16:20,312 DEBUG org.jboss.seam.Component:
      13:16:20,312 DEBUG org.jboss.seam.Component:
      13:16:20,312 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,328 DEBUG org.jboss.seam.Component:
      13:16:20,343 DEBUG org.jboss.seam.Component:
      13:16:20,343 DEBUG org.jboss.seam.Component:
      13:16:20,343 DEBUG org.jboss.seam.Component:
      13:16:20,359 DEBUG org.jboss.seam.Component:
      13:16:20,359 DEBUG org.jboss.seam.Component:
      13:16:20,359 DEBUG org.jboss.seam.Component:
      13:16:20,359 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component: class=class org.jboss.seam.core.LocaleSelector; country=; language=de; locale=de; localeString=de; supportedLocales=[javax.faces.model.SelectItem@26d560, javax.faces.model.SelectItem@182b9b5, javax.faces.model.SelectItem@16e46f5]; variant=;
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,375 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,390 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,406 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,421 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,437 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component: class=class org.jboss.seam.core.LocaleSelector; country=; language=de; locale=de; localeString=de; supportedLocales=[javax.faces.model.SelectItem@8d0a11, javax.faces.model.SelectItem@18feca1, javax.faces.model.SelectItem@1f85a86]; variant=;
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,453 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,468 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      13:16:20,484 DEBUG org.jboss.seam.Component:
      [...]