1 2 Previous Next 15 Replies Latest reply on Jul 29, 2009 12:32 AM by Ronald van Kuijk

    JBoss 5 redeploys app whenever pages.xml changes

    Kahli Burke Newbie

      I am experiencing this issue with JBoss 5.1.0 being overly eager to redeploy my app whenever the pages.xml changes. Since Eclipse is calling the explode target whenever I change it, my app is redeploying too frequently. This didn't happen with JBoss 4.2.3 and the older versions of Seam I was using back then.


      Does anyone have any experience with this and have any pointers on preventing this behavior. I looked through some of the deployment configuration such as the conf/bootstrap/profile.xml which has an entry for

      <bean name="DeploymentFilter" class="org.jboss.virtual.plugins.vfs.helpers.ExtensibleFilter">

      , and added configuration to exclude pages.xml but that didn't seem to help. I've searched through JBoss wiki and the seam forum here and can't find info.


      Any assistance would be appreciated!


      Thanks,


      Kahli

        • 1. Re: JBoss 5 redeploys app whenever pages.xml changes
          Arbi Sookazian Master

          If you project is deployed as a WAR, JBoss will re-deploy your app if the web.xml changes (timestamp change).  If it's an EAR, it deploys when the application.xml changes.


          If you're doing some user error, then that sounds like a bug in Seam/JBoss AS...

          • 2. Re: JBoss 5 redeploys app whenever pages.xml changes
            Arbi Sookazian Master

            Sorry, if you're not doing an error...


            ADD AN EDIT BUTTON LIKE ALL OTHER FORUMS, JEEZUZ KRISTE!

            • 3. Re: JBoss 5 redeploys app whenever pages.xml changes
              Kahli Burke Newbie

              The behavior you describe with application.xml and/or web.xml is what I'm accustomed to. In this case, I can go into the (exploded) war under the ear directory in the jboss/server/default/deploy directory, and simply 'touch WEB-INF/pages.xml', and the JBoss scanner will redeploy the application.


              This is of course inconvenient because it takes a lot more time when making changes to pages.xml frequently. There also seems to be some memory leak in the classes because after many redeploys the PermGen will run out of space and an OOM will occur.

              • 4. Re: JBoss 5 redeploys app whenever pages.xml changes
                Ronald van Kuijk Apprentice

                Without using capitals (contribute the edit functionality if you realy want it that much instead of just complaining), my experience is that it is a JBoss tools issue instead of a JBoss AS issue. With AS 4.2.2 I get a full deployment to if I change pages.xml. Big deal. If you change  pages.xml every second and save it every second, yes that happpens and deploys many times. Look at post on how often JBoss Tools deploys etc... or save it less often. Or configure JBoss tools to deploy less often (eclipse 3.4 and 3.5 differ in that context)


                Sjeezz.... I HATE CAPITALS

                • 5. Re: JBoss 5 redeploys app whenever pages.xml changes
                  Kahli Burke Newbie

                  Thanks for the suggestion about checking the JBoss Tools plugin. In this case, it is not JBoss Tools doing the redeploy. It's something with the deployment scanner in JBoss 5 and/or the Seam integration with that.


                  If I simply change the modification timestamp of pages.xml from the command line, with no Eclipse interaction, JBoss redeploys the application. This is not what occurred in JBoss 4.2.3, though I was also using an older version of Seam 2 (I think 2.0.1) at the time.

                  • 6. Re: JBoss 5 redeploys app whenever pages.xml changes
                    Arbi Sookazian Master

                    Click HELP for text formatting instructions. Then edit this text and check the preview.

                    does the above instruction really need to be there so we have to manually delete it every time we post?


                    does the edit button really need to be missing?


                    does this forum's performance really need to be this consistently slow?


                    does the search facility really need to be weak and dysfunctional?


                    I HOPE NOT.

                    • 7. Re: JBoss 5 redeploys app whenever pages.xml changes
                      Arbi Sookazian Master

                      and before you know it, your account is deleted mysteriously.  there is no shame.

                      • 8. Re: JBoss 5 redeploys app whenever pages.xml changes
                        Ronald van Kuijk Apprentice


                        Click HELP for text formatting instructions. Then edit this text and check the preview.

                        does the above instruction really need to be there so we have to manually delete it every time we post?


                        Currently it is there, if you really hate it (and I think you do) file a jira issue with a patch, gather votes there and then it will be fixed



                        does the edit button really need to be missing?

                        Personally I hate to RM (repeate myself) but I do, well kind of
                        Currently it is not there, if you really hate it (and I think you do) file a jira issue with a patch, gather votes there and then it will be fixed



                        does this forum's performance really need to be this consistently slow?

                        No problem here anymore (used to be) so not sure what is causing it to still be slow on your side... Maybe you should upgrate your 1200/75 modem connection to a 20Mbit DSL line?



                        does the search facility really need to be weak and dysfunctional?

                        Often the result of search functionality is what the person that populated the query requested. At least in my case it is, and it is often what I want and when it is not, most usually the cause is that the poster of the original issue used wrong words. It is still very hard (even for google) to get the context right



                        I HOPE NOT.


                        Me neither, but I hope you get from my responses that you should either do something about it (like starting constructive discussions, filing jira issues, or even post fixes) or ..... (the five dots are a link, and don't take it personal)


                        Click HELP for text formatting instructions. Then edit this text and check the preview.

                        • 9. Re: JBoss 5 redeploys app whenever pages.xml changes
                          Kahli Burke Newbie

                          Might I suggest that you take this discussion to another topic in the forum?


                          This interaction is detracting from the topic I was posting about which is the deployment behavior in JBoss 5 and Seam 2.1.2.


                          Thanks.

                          • 10. Re: JBoss 5 redeploys app whenever pages.xml changes
                            Arbi Sookazian Master

                            The auto-build runs whenever a file in the editor is saved.  All you have to do is save the file to have your changes carried to the exploded archive on the JBoss server.

                            pg. 73 SiA book


                            Perhaps your problem is related to Eclipse's auto-build and your seam-gen'd explode.launch file?  But are you sure you're only experiencing this behavior with pages.xml and no other files?

                            • 11. Re: JBoss 5 redeploys app whenever pages.xml changes
                              Ronald van Kuijk Apprentice

                              Sorry you are right, I was just so fed up with these things that I just had to respond.... Won't happen again (at least not in this topic ;-))

                              • 12. Re: JBoss 5 redeploys app whenever pages.xml changes
                                Kahli Burke Newbie

                                Well I still haven't figured this out. It is not at all related to Eclipse, JBoss Tools, ant targets, exploding, etc. To be clear, all I have to do is touch pages.xml using the command


                                '$ touch pages.xml'


                                in the exploded war and it will redeploy the app. I discovered that this actually is true for any .xml file in the war (I only tested in the WEB-INF directory). In fact, if I create some randomly named xml file like foobar.xml it will cause it to redeploy, and I was able to get JBoss into a redeploy loop somehow doing this where it redeployed constantly even though no changes were occurring to the filesystem.


                                Unfortunately I have not been able to determine how to change the JBoss configuration to filter these files out, even though there appears to be such a provision in the various config files. I cannot find clear documentation on what the various deployment scanner XML configured beans in the JBoss microcontainer are responsible for. But I think it's probably more of a JBoss AS issue instead of Seam so it's probably time to post over on their forum. If I figure it out, I'll come and post an update here.

                                • 14. Re: JBoss 5 redeploys app whenever pages.xml changes
                                  Stuart Douglas Master

                                  That JIRA is unrelated, it was to do with the fact that seams hot deployment of pages.xml files was not working. I have also seem this behaviour of jboss 5, I think I got around it by deleting the following line from seam-deployers-jboss-beans.xml:


                                  
                                    <bean name="SeamMTMatcher" class="org.jboss.seam.integration.microcontainer.deployers.SeamTempModificationTypeMatcher"/>
                                  
                                  

                                  1 2 Previous Next