JBoss EAP 7 file watch service does not detect changes in subdirectories of exploded deployment on Windows
Environment
- Red Hat JBoss Enterprise Application Server (EAP)
- 7.0
- 7.1
- 7.2
- Microsoft Windows
Issue
- Changes in subfolder of exploded deployment are not detected by file watch service in JBoss EAP 7 on Windows
- JSP hot reloading does not work in subdirectories of an exploded deployment in JBoss EAP 7 running on Windows
Resolution
This is a bug which has been fixed in EAP 7.2.3 or later:
- EAP 7.2.z: Content from issues.jboss.org is not included.JBEAP-17041
- Undertow: Content from issues.jboss.org is not included.UNDERTOW-1555
If you require JSP hot reloading until the above JIRA is fixed, a workaround is enabling development mode. Set development="true" attribute on <jsp-config>:
<servlet-container name="default">
<jsp-config development="true" modification-test-interval="15"/>
<websockets/>
</servlet-container>
You can also tune the modification-test-interval attribute, which is 4 (seconds) by default, to change the minimum amount of time between two tests for updates. However, note that the development mode triggers a recompilation of the JSP files after the time specified to the modification-test-interval parameter (= the recompilation happens on the request regardless of having the JSP change).
Root Cause
- EAP 7.2.z: Content from issues.jboss.org is not included.JBEAP-17041
- Undertow: Content from issues.jboss.org is not included.UNDERTOW-1555
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.