What exact version of WildFly and JDK are you using? Also did you try with 8.1.0.CR1 or latest nightly?
I would recommend you to bypass redeployment if you are working lots on static content and just configure file handler to serve your custom path directly from disk.
just add handler like this in undertow subsystem
<file name="static-content" path="/path/on/disk/for/static/content" />
and then under host you can just add it like this:
<location name="/static" handler="static-content" />
<servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only" use-listener-encoding="true">
but it is useless.
For standalone deployment, go to standalone/configuration directory and open standalone.xml. Look for the line below.
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
Add this param to enable hot deploy auto-deploy-exploded="true"
Changes are as below:
<deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" auto-deploy-exploded="true" deployment-timeout="60"/>
you can try it.
this will cause redeployment, AFAICS, so too expensive for larger applications
Thanks a lot! Your suggestion on bypassing hot deploy worked. I'm using Wildfly 8.1.0.Final and JDK 8.
I came to know that the issue with hot deployment is fixed in 8.2. But is there a patch for undertow that I can apply that will fix the issue in 8.1?
Thanks in advance for the help!