1 Reply Latest reply on Oct 31, 2006 11:34 PM by gavin.king

    PhaseListenerManager Exception...

    diablo341

      I've done a lot reading of other posts, but I don't see anything immediately wrong with the my code. I've been trying (chuckle) to get the seam-gen wiki example to work. It's a sample app that uses jBPM. When I publish the ear and go to http://localhost:8080/sample/home.seam, I get the following errors:

      15:59:40,018 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW(1) afterPhase
      java.lang.IllegalStateException

      15:59:40,018 INFO [SeamExceptionFilter] killing transaction
      15:59:40,028 ERROR [ExceptionInterceptor] redirecting to debug page
      javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: begin method invoked from a long running conversation, try using @Begin(join=true)


      I haven't modified any code so far. Here's some snippets of some config files:

      faces-config.xml
      <lifecycle>
       <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
       </lifecycle>


      web.xml:
      <listener>
       <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
       </listener>
      
       <listener>
       <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
       </listener>
      
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
      
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>


      I want to get this working before I move on to creating a blank template and then my real project here at work.

      John

        • 1. Re: PhaseListenerManager Exception...
          gavin.king

          I don't think the seam-gen package on the wiki is working with seam 1.1.0.BETA1. I'm in the process of incorporating seam-gen into the main seam distribution, so we can be sure it is always working with the latest rev of seam.