Bug 951044 - Seam2.3 seam-gen EAR project explode target touches .dodeploy forcing a restart, preventing hot-deployment
Summary: Seam2.3 seam-gen EAR project explode target touches .dodeploy forcing a resta...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise WFK Platform 2
Classification: Retired
Component: Seam
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ER1
: 2.3.0
Assignee: Marek Novotny
QA Contact: Marek Schmidt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-11 11:30 UTC by Marek Schmidt
Modified: 2013-07-16 11:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The Ant build.xml file of an EAR application, generated by seam-gen, contained an error. This error influenced the logic used to determine whether the deployed application should be restarted after being updated. As a consequence of the error, the application would always restart, even in cases where normally hot deployment is performed. The build.xml template has been fixed to check for an EAR deployment. As a result, the application does not restart unnecessarily.
Clone Of:
Environment:
Last Closed: 2013-07-16 11:34:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBSEAM-5087 0 None None None Never

Description Marek Schmidt 2013-04-11 11:30:15 UTC
Description of problem:

seam-gen EAR project "ant explode" will always create a .dodeploy file. 

build.xml contains:

<available file="${deploy.dir}/${project.name}.war.deployed" property="deployed.file.exists"/>

which is war-specific, so deployed.file.exists doesn't get set in an EAR project.

Version-Release number of selected component (if applicable):
WFK 2.2.0.CR2

How reproducible:
Always

Steps to Reproduce:
1. create an 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.

Comment 1 Petr Penicka 2013-04-17 22:39:10 UTC
Edited release note and inserted it into the 2.2.0 RN book.

Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html-single/2.2.0_Release_Notes/index.html

Build: JBoss_Web_Framework_Kit-2.2.0_Release_Notes-2.2-en-US-0-23

Comment 2 Marek Novotny 2013-05-10 13:33:07 UTC
fixed by Vasek as https://source.jboss.org/changelog/Seam?cs=15492

Comment 4 Tomas Remes 2013-06-12 14:40:40 UTC
Verified on 2.3.0.ER1 release.

Comment 5 Sneha 2013-07-03 09:43:52 UTC
Updated doc text.


Note You need to log in before you can comment on or make changes to this bug.