13 Replies Latest reply on Nov 7, 2009 9:09 PM by cleverson.sacramento

    seamphaselistener and No phase id bound to current thread

    toolsrme

      I have looked and all the forum entries that I could find on this, but I still can't get this error to stop.  I am using the following:



      • JBoss 4.2.2 GA

      • Facelets 1.1.14

      • RichFaces 3.2.0

      • Seam 2.1.0 Snapshot (as of 4/12/2008) plus many other versions



      I get the following error when I try to go to my initial page (Index.seam) via jboss-seam-debug.jar debug page:



      • No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)



      With a stack trace of:


      [org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:162), org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:174), org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:90), org.jboss.seam.contexts.PageContext.set(PageContext.java:97), org.jboss.seam.Component.newInstance(Component.java:2059), org.jboss.seam.Component.getInstance(Component.java:1959), org.jboss.seam.Component.getInstance(Component.java:1938), org.jboss.seam.Component.getInstance(Component.java:1915), org.jboss.seam.Component.getInstance(Component.java:1910), org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92), org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(ConversationPropagation.java:85), org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:58), org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:389), org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:228), org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194), com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175), com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114), com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104), com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118), javax.faces.webapp.FacesServlet.service(FacesServlet.java:265), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83), org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147), org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276), org.ajax4jsf.Filter.doFilter(Filter.java:175), org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:73), org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69), org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206), org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230), org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175), org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179), org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432), org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84), org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102), org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157), org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109), org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262), org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844), org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583), org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446), java.lang.Thread.run(Thread.java:619)]
      



      I've basically take a copy straight from the examples for the web.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
           version="2.5">
           <listener>
                <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
           </listener>
           <servlet>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
           </servlet>
           <servlet-mapping>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <url-pattern>/seam/resource/*</url-pattern>
           </servlet-mapping>
           <filter>
                <filter-name>Seam Filter</filter-name>
                <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
           </filter>
           <filter-mapping>
                <filter-name>Seam Filter</filter-name>
                <url-pattern>/*</url-pattern>
           </filter-mapping>
           <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
           </context-param>
           <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>true</param-value>
           </context-param>
           <servlet>
                <servlet-name>Faces Servlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
           </servlet>
           <servlet-mapping>
                <servlet-name>Faces Servlet</servlet-name>
                <url-pattern>*.seam</url-pattern>
           </servlet-mapping>
           <context-param>
                <param-name>org.richfaces.SKIN</param-name>
                <param-value>classic</param-value>
           </context-param>
           <session-config>
                <session-timeout>10</session-timeout>
           </session-config>
           <welcome-file-list>
                <welcome-file>home.jsp</welcome-file>
           </welcome-file-list>
      </web-app>



      Here is my components.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
           xmlns:core="http://jboss.com/products/seam/core"
           xmlns:persistence="http://jboss.com/products/seam/persistence"
           xmlns:security="http://jboss.com/products/seam/security"
           xmlns:mail="http://jboss.com/products/seam/mail"
           xmlns:transaction="http://jboss.com/products/seam/transaction"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      
           xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
                                    http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd
                                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
                                    http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                                    http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.1.xsd
                                    http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd">
      
           <core:init debug="true" jndi-pattern="ECSC-ear/#{ejbName}/local"/>
      
           <core:manager concurrent-request-timeout="5000"
                conversation-timeout="120000" conversation-id-parameter="cid"/>
      
           <security:identity jaas-config-name="ActiveDirectory" remember-me="true"/>
      
           <transaction:ejb-transaction/>
      
           <persistence:managed-persistence-context name="vantiveEntityManager"
                auto-create="true"
                persistence-unit-jndi-name="java:/vantiveEntityManagerFactory"/>
      
           <persistence:managed-persistence-context name="sturlEntityManager"
                auto-create="true"
                persistence-unit-jndi-name="java:/sturlEntityManagerFactory"/>
      
           <persistence:managed-persistence-context name="cenetEntityManager"
                auto-create="true"
                persistence-unit-jndi-name="java:/cenetEntityManagerFactory"/>
      
           <persistence:managed-persistence-context name="faximportEntityManager"
                auto-create="true"
                persistence-unit-jndi-name="java:/faximportEntityManagerFactory"/>
      
           <persistence:managed-persistence-context name="p8usersEntityManager"
                auto-create="true"
                persistence-unit-jndi-name="java:/p8usersEntityManagerFactory"/>
      
           <event type="org.jboss.seam.security.notLoggedIn">
                <action execute="#{redirect.captureCurrentView}"/>
           </event>
      
           <event type="org.jboss.seam.security.loginSuccessful">
                <action execute="#{redirect.returnToCapturedView}"/>
           </event>



      What have I missed?  What else can cause this?  I obviously did something wrong.  I just can't find out what.


      Thanks,
      David



        • 1. Re: seamphaselistener and No phase id bound to current thread
          jpviragine.jpviragine.gmail.com

          Davi,


          Make sure that you don't have more then one jboss-seam in your classpath

          • 2. Re: seamphaselistener and No phase id bound to current thread
            toolsrme

            Thanks.  I had already done that once before due to hibernate issues (JBoss AS has its own and I did not realize that), but I did it again just to be sure, and I only have one set of seam JAR files in my path.  I am using an EAR type of deployment and all of my JARs are actually configured in the application.xml and physically reside in the EAR directory (i.e. sibling to the WAR file/directory).


            I have jboss-seam.jar, jboss-seam-debug.jar, jboss-seam-mail.jar, jboss-seam-pdf.jar, and jboss-seam-ui.jar.  I am not using the mail or pdf ones yet, but I will be.


            I know I am missing something (probably from being to close to it).  Any ideas?  What beyond web.xml, classpath JARs could cause this?  Can the actual xhtml file cause this?  pages.xml?  etc....


            If any of those would be helpful (or something else for that matter) would help, just let me know.  I just did not want to create a mind numbingly huge entry.


            Thanks again,
            David

            • 3. Re: seamphaselistener and No phase id bound to current thread
              toolsrme

              I do not know if this will help, but I also get this in my seam log file (I have Seam set at TRACE level in log4j conf file):


              2008-04-13 20:11:38,657 DEBUG (FacesLifecycle.java:endRequest:125) <<< End JSF request for /ECSC/debug.seam
              2008-04-13 20:11:38,657 TRACE (SeamPhaseListener.java:afterPhase:183) after phase: RENDER_RESPONSE 6
              2008-04-13 20:11:38,657 ERROR (SeamPhaseListener.java:afterPhase:199) uncaught exception
              java.lang.IllegalStateException: No active application scope
                   at org.jboss.seam.core.Init.instance(Init.java:77)
                   at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:332)
                   at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:243)
                   at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194)
                   at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
                   at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
                   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
                   at org.ajax4jsf.Filter.doFilter(Filter.java:175)
                   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:73)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                   at java.lang.Thread.run(Thread.java:619)
              2008-04-13 20:11:38,657 ERROR (SeamPhaseListener.java:afterPhase:213) swallowing exception
              java.lang.IllegalStateException: No active application scope
                   at org.jboss.seam.core.Init.instance(Init.java:77)
                   at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:332)
                   at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:243)
                   at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:194)
                   at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
                   at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
                   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
                   at org.ajax4jsf.Filter.doFilter(Filter.java:175)
                   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:73)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                   at java.lang.Thread.run(Thread.java:619)
              



              I've looked at all the forum threads that I could find on No active application scope too, but they have not helped me get rid of my problem either.


              Thanks,
              David

              • 4. Re: seamphaselistener and No phase id bound to current thread
                jpviragine.jpviragine.gmail.com

                David,


                Please, show your application.xml


                • 5. Re: seamphaselistener and No phase id bound to current thread
                  toolsrme

                  Here is my application.xml for this EAR:


                  <?xml version="1.0" encoding="UTF-8"?>
                  <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
                    <display-name>ECM Coordinator Service Center</display-name>
                    <module>
                      <web>
                        <web-uri>ECSC.war</web-uri>
                        <context-root>/ECSC</context-root>
                      </web>
                    </module>
                    <module>
                      <ejb>ECSC-ejb.jar</ejb>
                    </module>
                    <module>
                      <java>jboss-seam.jar</java>
                    </module>
                    <module>
                      <java>richfaces-api.jar</java>
                    </module>
                    <module>
                      <java>commons-beanutils.jar</java>
                    </module>
                    <module>
                      <java>commons-digester.jar</java>
                    </module>
                    <module>
                      <java>iText.jar</java>
                    </module>
                    <module>
                      <java>jakarta-oro.jar</java>
                    </module>
                    <module>
                      <java>jboss-el.jar</java>
                    </module>
                    <module>
                      <java>jboss-seam-mail.jar</java>
                    </module>
                    <module>
                      <java>jboss-seam-pdf.jar</java>
                    </module>
                    <module>
                      <java>jboss-seam-ui.jar</java>
                    </module>
                    <module>
                      <java>jcommon.jar</java>
                    </module>
                    <module>
                      <java>jfreechart.jar</java>
                    </module>
                    <module>
                      <java>jsf-facelets.jar</java>
                    </module>
                    <module>
                      <java>mail.jar</java>
                    </module>
                    <module>
                      <java>poi.jar</java>
                    </module>
                    <module>
                      <java>richfaces-impl.jar</java>
                    </module>
                    <module>
                      <java>richfaces-ui.jar</java>
                    </module>
                  </application>
                  



                  Every JAR that I use is up there and is defined in the applicaton.xml.  I had read a forum thread somewhere, a while back, about needing it that way.  My application worked better after doing so, but it could also be coincidence too.


                  The weird thing is that if I undo the debug equals true in components.xml and just ignore this phase error, my app works.


                  Thanks,
                  David

                  • 6. Re: seamphaselistener and No phase id bound to current thread
                    jpviragine.jpviragine.gmail.com

                    David,


                    My application.xml refers only to jboss-seam.jar:



                    <?xml version="1.0" encoding="UTF-8"?>
                    <application xmlns="http://java.sun.com/xml/ns/javaee"
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
                         version="5">
                    
                         <display-name>elo</display-name>
                    
                         <module>
                              <web>
                                   <web-uri>elo.war</web-uri>
                                   <context-root>/elo</context-root>
                              </web>
                         </module>
                    
                         <module>
                              <ejb>elo.jar</ejb>
                         </module>
                    
                         <module>
                              <java>jboss-seam.jar</java>
                         </module>
                    
                    </application>




                    Others JARs are distributes as follows:


                    in lib (root of my ear exploded dir):



                    commons-lang-2.1.jar
                    jboss-el.jar
                    jbpm-jpdl.jar
                    richfaces-api.jar




                    in WEB-INF/lib (war dir):



                    commons-beanutils.jar
                    commons-digester.jar
                    jboss-seam-debug.jar
                    jboss-seam-ui.jar
                    jsf-facelets.jar
                    richfaces-impl.jar
                    richfaces-ui.jar




                    My application and Seam debug pages works fine despite debug is true or false






                    • 7. Re: seamphaselistener and No phase id bound to current thread
                      toolsrme

                      Thanks.  I will try moving them back into those locations again and see what I get.


                      I also had all those in the MANIFEST file for the WAR and the EJB.  Did you have all those in yours?  Or do you only put the EJB and jboss-seam.jar in the WARs MANIFEST and only jboss-seam.jar in the EJB MANIFEST?


                      Thanks again,
                      David

                      • 8. Re: seamphaselistener and No phase id bound to current thread
                        jpviragine.jpviragine.gmail.com

                        David,


                        I'm using exploded ear without any MANIFEST.


                        • 9. Re: seamphaselistener and No phase id bound to current thread
                          toolsrme

                          I am using an exploded EAR too.  I've removed all my MANIFEST files and moved the libraries around.  After doing that my EJB could not get started by JBoss.  It was looking for TreeStateAdvisor which is in the richfaces ui jar.  Therefore I moved that JAR up to the EAR/lib directory and then it gave me a NoClassDefFoundError: org/ajax4jsf/component/UIDataAdaptor error so I moved the richfaces impl JAR up there too.  Then I got another no class defined error on another JAR.  I'm probably going to have to put everything back up in the EAR lib directory.  Although the application.xml will be different and no manifests.


                          I let you know what I get when I finish finding all the jars that have to be moved back.


                          Thanks,
                          David

                          • 10. Re: seamphaselistener and No phase id bound to current thread
                            toolsrme

                            The error is gone!


                            Thanks.  I have no idea how moving jars around would fix a problem reported by missing (or more than one) seamphaselistener, but it works so I will not complain.


                            I eventually will need to wrap this (not expanded) into a appname.ear file.  Can I do it with empty MANIFESTS or will I actually need to figure out all the correct class path stuff for them?


                            Thanks for your help.


                            David

                            • 11. Re: seamphaselistener and No phase id bound to current thread
                              jpviragine.jpviragine.gmail.com

                              David,


                              Leave MANIFEST without classpath information...


                              I´m using sean-gen provided ant build script to generate explode/archived deployments

                              • 12. Re: seamphaselistener and No phase id bound to current thread
                                toolsrme

                                Thanks.  I'm using Eclipse with JBoss Tools.  So it uses Seam gen when setting up the project initially.  After that though it appears Eclipse likes to mess with the MANIFEST file.


                                I will keep all this in mind though when I get to that point.


                                Thanks again for your help.


                                David

                                • 13. Re: seamphaselistener and No phase id bound to current thread
                                  cleverson.sacramento

                                  Probably the jboss-seam.jar is present in both: EAR root and
                                  EAR lib folder.


                                  If you are using <module><ejb>jboss-seam.jar</ejb></module> in your application.xml then remove the JAR yourapp.ear/lib/jboss-seam.jar. But if you aren't then remove yourapp.ear/jboss-seam.jar.