Bug 1230032 - (6.4.z) org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY does not work when a application is redeployed
Summary: (6.4.z) org.jboss.as.web.deployment.DELETE_WORK_DIR_ONCONTEXTDESTROY does not...
Keywords:
Status: CLOSED DUPLICATE of bug 1220246
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.4.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tomas Hofman
QA Contact: Martin Simka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-10 07:19 UTC by Jose Roman Martin Gil
Modified: 2015-06-17 07:48 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-06-16 09:49:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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