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
In Standalone Mode is working successfully.
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 ***