Bug 1230032

Summary: (6.4.z) org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY does not work when a application is redeployed
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jose Roman Martin Gil <rmarting>
Component: Domain ManagementAssignee: Tomas Hofman <thofman>
Status: CLOSED DUPLICATE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.1CC: bbaranow, brian.stansberry, cdewolf, dandread, thofman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 09:49:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jose Roman Martin Gil 2015-06-10 07:19:54 UTC
Description of problem:
org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY=true clean the jsp cache file system when a application is redeployed. It is working in previous versions of JBoss EAP successfully however in JBoss EAP 6.4.1 does not work.

Version-Release number of selected component (if applicable):


How reproducible:
Defined the system property in a server-group then a application is redeployed. The application folder in the work folder is not deleted to recompile again the new version of JSP.

Steps to Reproduce:
1. Define the system property org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY in a server-group
2. Deploy a application and test it
3. Review the work folder that .class and .java files are created (domain/servers/server-one/tmp/work/jboss.web/default-host/<app>/org/apache/jsp)
4. Redeploy a new version of the application.
5. Review the work folder that it is not deleted. Only the server is restarted then that folder is removed. 

This CLI command defines the system property in a server-group:

/server-group=main-server-group/system-property=org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY:add(value=true,boot-time=true)


Actual results:
The work folder is not removed.

Expected results:
The work folder is removed. The original behaviour for this system property.

Additional info:
This system property is described in the next KCS: https://access.redhat.com/solutions/18374
At this moment is not valid in JBoss EAP 6.4.1

Comment 4 Jose Roman Martin Gil 2015-06-10 13:23:57 UTC
In Standalone Mode is working successfully.

Comment 10 Tomas Hofman 2015-06-16 09:49:41 UTC
Confirming, the fix for BZ1220246 is working for this issue.

I'm closing as duplicate.

*** This bug has been marked as a duplicate of bug 1220246 ***