5 Replies Latest reply on Aug 24, 2007 12:57 PM by bensonfungjava

    JBOSS Seam example application, registration, doesn't work

    bensonfungjava

      Hi,

      I followed the example application, registration in JBOSS Seam. Unfortunately, it doesn't work.

      Environment :

      JBOSS Seam : 1.2.1 GA
      MyFaces 1.1.4
      JBOSS AS : 4.0.5 GA

      the URL : http://localhost:8080/seam-registration/register.seam can be accessed. After entering the 3 parameters and hit register button, 3 error message was displayed as follows :

      * Conversion Error "_idJsp2": Error during model data update.
      * Conversion Error "_idJsp3": Error during model data update.
      * Conversion Error "_idJsp4": Error during model data update.


      And I finally discovered that the Seam component, user, is not instantiated, that's why the property value of user cannot get set.

      But the reason is why the user Seam component cannot get instantiated? If you guys have any idea, please let me know. This issue really makes piss me off.


      thanks
      Benson

        • 1. Re: JBOSS Seam example application, registration, doesn't wo
          lipmanp

          4.0.5 is not support seam by default, Have u follow the instruction in gettingstart page within the seam doc?

          • 2. Re: JBOSS Seam example application, registration, doesn't wo
            bensonfungjava

            Hi lipmanp,

            Yes, I did followed the instruction in the getting start page. Seam does support 4.0.5.

            ----------------------------------------------------------------------------------
            2.1 Before you start
            Make sure you have JDK 5 or JDK 6, JBoss AS 4.0.5 and Ant 1.6, along with recent versions of Eclipse, the JBoss IDE plugin for Eclipse and the TestNG plugin for Eclipse correctly installed before starting. Add your JBoss installation to the JBoss Server View in Eclipse. Start JBoss in debug mode. Finally, start a command prompt in the directory where you unzipped the Seam distribution.
            -----------------------------------------------------------------------------------

            If anyone has idea what the problem is, please help.

            Thanks
            Benson

            • 3. Re: JBOSS Seam example application, registration, doesn't wo
              lipmanp

              I've run seam 1.2 with Jboss 4.0.5 for some time, no problem.
              make sure your Jboss is installed correctly.

              For Seam 1.2, you must use the JEMS 1.2 Installer to install JBoss 4.0.5 with the ejb3 profile selected. Seam 1.3 requires JBoss 4.2 but does not require the use of the JEMS installer to install EJB3 functionality.

              • 4. Re: JBOSS Seam example application, registration, doesn't wo
                bensonfungjava

                Hi lipmanp,

                I am sure the JBOSS has been installed properly becasue there are another ejb3 things running on this app server without any problem except this seam application.

                BTW, recently, I discovered that the war file in the ear file cannot access the jboss-seam.jar which is sitting in the ear file, therefore, the user component cannot get instantiated properly. Do you know how to make jboss-seam.jar accessible to the war file?


                Thanks
                Benson

                • 5. Re: JBOSS Seam example application, registration, doesn't wo
                  bensonfungjava

                  It works fine finally. The most important thing is that both myfaces jar files have to be put into JBOSS lib directory instead of the war file. Otherwise, the StartupContextPhaseListener will pick up the ApplicationFactory class instead of SeamApplicationFactory and it leads to fail to instantiate user Seam component. This is most important. Unfortunately, the JBOSS Seam document did not mention this point. I am very sorry for this missing.

                  Benson