Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-5087

seam-gen EAR explode target touches .dodeploy forcing a restart, preventing hot-deployment

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.0.Final
    • Fix Version/s: 2.3.1.CR1
    • Component/s: Hot Deploy
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. create a EAR project by seam-gen
      2. ant explode
      3. go to http://127.0.0.1:8080/myproject
      4. login as "admin" with an empty password
      5. refresh the page
      6. run "ant explode"
      7. wait 30 seconds
      8. refresh the page, notice you are not logged in as admin anymore, as the application has restarted, which is wrong.

      Show
      1. create a EAR project by seam-gen 2. ant explode 3. go to http://127.0.0.1:8080/myproject 4. login as "admin" with an empty password 5. refresh the page 6. run "ant explode" 7. wait 30 seconds 8. refresh the page, notice you are not logged in as admin anymore, as the application has restarted, which is wrong.
    • Workaround Description:
      Hide

      Remove the

      <touch file="${deploy.dir}/${project.name}.ear.dodeploy"/>
      

      line from the explode target in the build.xml

      Show
      Remove the <touch file= "${deploy.dir}/${project.name}.ear.dodeploy" /> line from the explode target in the build.xml

      Description

      seam-gen generated explode target contains:

      <touch file="${deploy.dir}/${project.name}.ear.dodeploy"/>
      

      which forces the application to restart, which makes the hot-deployment feature useless.

      The problem is that on AS7 at least one touch of the dodeploy is necessary, as it wouldn't deploy otherwise.

      One possible way to fix this could perhaps be to check for the existence of the .deployed file and touch the .dodeploy only if such file doesn't exist.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vdedik Vaclav Dedik
                  Reporter:
                  vdedik Vaclav Dedik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: