EAP 7 does not detect JSP file change by Undertow/XNIO file watch service when the JSP file is updated by mv command from the different filesystem

Solution Unverified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • Updating JSP file in the exploded deployment

Issue

EAP 7 does not detect JSP file change by Undertow/XNIO file watch service when the JSP file is updated by using mv command from the different filesystem or from the different quota.

Resolution

This is a bug reported in the following JIRAs. This has been fixed in JBoss EAP 7.2.4 or later.

Until the fix is included, you can work around this issue by either of the followings:

  • Manually execute touch command to update the file after moving (= using "mv" command) the file between the different filesystems or different quota.

  • Copy the JSP file to the same filesystem and the same quota, then move (= rename by using "mv" command) the copied file to the actual destination JSP file. For example:

    $ cp /tmp/newcontents/test.jsp /path/to/jboss/standalone/deployments/test.war/test.jsp.new
    $ mv /path/to/jboss/standalone/deployments/test.war/test.jsp.new /path/to/jboss/standalone/deployments/test.war/test.jsp
    

Root Cause

Components
Category

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.