4 Replies Latest reply on Jan 22, 2010 5:37 AM by maxandersen

    How to do "seam restart" from jbds seam project?

    daxxy

      I am working with a newly generated seam project. This is the first project I've generated from the JBDS wizard.  I had to alter the -ds.xml file and I can't seem to get the app to restart.  Normally I would do "seam restart", but there is no build.xml file and I can't figure out to do the equivalent.

       

      I've tried the following:

       

      Adding and removing the project from the server

      Full publish on every part where it is an option

       

      I have not restarted the server (yet), because that is quite time consuming and I'm sure there is a better way.

       

      I'm used to command-line seam-gen and simply typing "seam restart" whenever I run into trouble.

       

      I was trying to figure out how to prevent the schema name from appearing twice in a query (see my previous post :-) ) which is why I started fiddling with this. Then I got an entitymanagernotbound error due to a syntax error in -ds.xml file.  I think it's right now, but I can't figure out how to make it "take hold."

       

      TDR

        • 1. Re: How to do "seam restart" from jbds seam project?
          daxxy

          There is something I'm really not getting here.

           

          I just had to restart the JBoss server to get a change in a view to take place. ?

           

          FTR I am using JBDS 3.X, with JBoss EAP 5.X and Seam 2.2.0EAP5.

           

          I am randomly republishing, restarting, and the results seem inconsistent... can someone point me to documentation that explains how this works?

          • 2. Re: How to do "seam restart" from jbds seam project?
            maxandersen

            seam restart does the exact same thing as that little "touch" finger button in the toolbar does - it touches the web.xml descriptor of your current project and that will trigger JBoss to redeploy the application.

             

            You should most definitly not have to restart your appserver to see changes to the view - changes get deployed automatically in the default setup (unless you disabled project build or automatic publishing).

             

            Documentation for JBoss Tools which is the basis of JBDS is available from http://docs.jboss.org/tools/3.1.0.CR1/

             

            For Seam stuff, http://docs.jboss.org/tools/3.1.0.CR1/en/GettingStartedGuide/html_single/index.html would be good start.

            1 of 1 people found this helpful
            • 3. Re: How to do "seam restart" from jbds seam project?
              daxxy

              I was going crazy with being unable to see my changes deployed.  I was publishing and adding and removing, etc. and I thought it was the software or ... (gasp) me!

               

              Finally I called support and after working on it for a bit with the tech, he drew my attention to the Problems tab and I had it fixed and project redeployed within 5 minutes.

               

              So this problem stemmed from learning curve related to switching from command-line to GUI.  Previously I have always used ant to control the project. Even when running it from eclipse, it felt the same degree of control when using the command line.  Any compile/other problems would show up in the console.

               

              Now that I am totally relying on the gui, it didn't occur to me to take note of the little pink X on my project folder or to bother to check the Problems view (which I had previously closed .)  I feel that switching to a gui always involves letting go of some control that you previously had. I am a unix user/ex-sys admin and am still more comfortable on the command line.  However, I'm open to the possibility that gui tools could make me more productive so I will stick with JBDS for the foreseeable future.  Aside from these problems I have described here, I like it very much.

               

              Thank you for your patience and feedback.

              • 4. Re: How to do "seam restart" from jbds seam project?
                maxandersen

                Good you found it, and trust me I want the IDE to be as powerful/flexible as possible without ending up being cryptic

                 

                And yes, if you relied on manually parsing the console output then I guess its a bit of a learning curve to realize that the tool can actually do that for you for the common things and that ends up in the Problem view