3 Replies Latest reply on Oct 3, 2007 10:02 AM by Marius Oancea

    ant seam-gen created project.

    Marius Oancea Novice

      I just created a new project with seam-gen cmd line utility (seam 2.0 beta).

      All is ok except the following:

      When I use @Stateless or @Statefull on a component i got:

      18:35:09,281 INFO [Component] Component: mainWindow, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: test.MainWindowBean, JNDI: eptosiv/MainWindowBean/local
      18:35:09,281 ERROR [[/eptosiv]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.RuntimeException: Could not create Component: mainWindow
       at org.jboss.seam.init.Initialization.addComponent(Initialization.java:9
      55)
       at org.jboss.seam.init.Initialization.installComponents(Initialization.j
      ava:882)
       at org.jboss.seam.init.Initialization.init(Initialization.java:538)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j
      
      


      Any ideea how to get rif of that?

      I deploy on jboss 4.2 using ant deploy.

      I tried seam restart and does not work.



        • 1. Re: ant seam-gen created project.
          Marius Oancea Novice

          I think i found it. In the reference docu i found:


          You need to be aware of the following limitations:
          ? the components must be JavaBean components, they cannot be EJB3 beans (we are working on fixing this
          limitation)
          ? entities can never be hot-deloyed
          ? components deployed via components.xml may not be hot-deployed
          ? the hot-deployable components will not be visible to any classes deployed outside of WEB-INF/dev
          ? Seam debug mode must be enabled


          This is about <core:init debug="true"/>


          • 2. Re: ant seam-gen created project.
            Marius Oancea Novice

            I've set debug=false.
            The result is :

            10:38:02,453 INFO [Initialization] Installing components...
            10:38:02,484 INFO [Component] Component: mainWindow, scope: SESSION, type: STAT
            EFUL_SESSION_BEAN, class: test.MainWindowBean, JNDI: java:com
            p/env/jboss-seam-jee5/MainWindowBean/local
            10:38:02,484 ERROR [[/eptosiv]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
            java.lang.RuntimeException: Could not create Component: mainWindow
            at
            org.jboss.seam.init.Initialization.addComponent(Initialization.java:9
            55)
            at org.jboss.seam.init.Initialization.installComponents(Initialization.j
            ava:882)

            • 3. Re: ant seam-gen created project.
              Marius Oancea Novice

              Solution was to create a method anotated with @Remove