4 Replies Latest reply on Oct 11, 2007 5:12 PM by csaldanh

    TransactionListener not bound

      I have been getting the following error while running my app

      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.core.transactionListener
      at org.jboss.seam.Component.newInstance(Component.java:1740)
      at org.jboss.seam.Component.getInstance(Component.java:1643)
      at org.jboss.seam.Component.getInstance(Component.java:1622)
      at org.jboss.seam.Component.getInstance(Component.java:1599)
      at org.jboss.seam.Component.getInstance(Component.java:1594)
      at org.jboss.seam.core.TransactionListener.instance(TransactionListener.java:60)
      ...
      Caused by: javax.naming.NameNotFoundException: TransactionListener not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

      This is some of the output from command line which shows that transactionListener is installed

      INFO [Component] Component: org.jboss.seam.core.transactionListener, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.core.TransactionListener, JNDI: restoreview/TransactionListener/local

      Can someone please tell me what I might be missing? I have added <core:transactionListener/> to the components.xml file. Is there anything else that i need.

        • 1. Re: TransactionListener not bound

          This is the global JNDI Namespace output from the JMX console

          +- restoreview (class: org.jnp.interfaces.NamingContext)
          | +- SignUp (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- UpdateProfile (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- RestaurantManager (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- RestaurantList (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- AddRestaurant (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- ReviewManager (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- Account (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)
          | +- Authentication (class: org.jnp.interfaces.NamingContext)
          | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
          | | +- local (class: java.lang.Object)

          It seems to me missing TransactionListener. I wonder why

          • 2. Re: TransactionListener not bound

            The way I am deploying the app is as an ear with the following directory structure:

            restoreview
            ---META-INF
            -MANIFEST.MF
            -application.xml
            ---lib/
            -jboss-seam.jar
            -...//other dependecies
            ---restoreview.jar
            ---restoreview.war

            • 3. Re: TransactionListener not bound

              Ah I found what was wrong.

              All I had to do was add

              lib/jboss-seam-1.2.1.GA.jar


              to the application.xml file

              • 4. Re: TransactionListener not bound

                Ah I found what was wrong.

                All I had to do was add the java module

                lib/jboss-seam-1.2.1.GA.jar


                to the application.xml file