6 Replies Latest reply on Apr 2, 2009 2:23 AM by maxandersen

    Seam project doesn't update

      Hi!

      I am using the latest stable JBoss Tools in addition with JBoss AS 4.2.3.GA and Seam Framework 2.1.1.GA.

      I created a new Seam Project using JBoss Tools, and the new generated project is correctly deployed to the AS. When changing a .xhtml page the changes are correctly updated as well.

      But when I am changing an entity bean, the change isn't published to the server.

      I tried to choose "Full Publish" and "Incremental Publish" in the JBoss Server View, but that didn't change anything. (by the way, where is the difference between them?)

      I have to stop the server, remove the project (by using "add / remove projects"), start it again und then add the project. After that strange procedure the project is updated correctly.

      Do you have any idea what I can try to "auto-update" my project even when some beans have changed?

      Thank you in advance!

        • 1. Re: Seam project doesn't update
          akazakov

          Are you sure an entity bean is not deployed to the server?
          Entities can't be hot-deployed. You have to restart the server.
          Or restarting without re-adding modules to the server doesn't help?

          • 2. Re: Seam project doesn't update

             

            "akazakov" wrote:
            Entities can't be hot-deployed.

            Oh, I didn't know that..

            "akazakov" wrote:
            You have to restart the server.
            Or restarting without re-adding modules to the server doesn't help?


            It does - mostly.

            Is there a 'quick' way to do the publishing combined with the restart of the server (shortcut, button, ..)?

            • 3. Re: Seam project doesn't update
              akazakov

               

              "GermanDev" wrote:
              Is there a 'quick' way to do the publishing combined with the restart of the server (shortcut, button, ..)?

              Publiching should work automaticly. So just use "Restart the server" button in Server View or on main tool bar in Seam Perspective.

              • 4. Re: Seam project doesn't update
                maxandersen

                You shouldnt even need to restart the server in this situation. Just restarting the application should be necessary.

                Simply touch the descriptors by the "touch" button and possibly change the autodeploy delay to 0 seconds to get even faster turn around.

                Btw. if you used New Seam Entity wizard we does this automatically (i.e. touch the descriptors to cause restart of the application)

                • 5. Re: Seam project doesn't update

                  Thank you for your answer!

                  sounds great, but only clicking on the "touch" button doesn't seem to change anything. Is there anything else I have to know?

                  Where do I change the delay of the autodeploy?

                  • 6. Re: Seam project doesn't update
                    maxandersen

                    Double click the server and there is a auto publish setting you can set.