Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17185

[GSS](7.2.z) Undertow servlet 'check-interval' is not working even when 'disable-file-watch-service' is set to true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.1.0.GA, 7.2.2.GA
    • Undertow
    • None
    • +
    • Hide

      1. Disable file watch service:
      ./jboss-cli.sh -c --command="/subsystem=undertow/servlet-container=default:write-attribute(name=disable-file-watch-service,value=true)"

      2. (optional) shorten check-interval:
      ./jboss-cli.sh -c --command="/subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=check-interval,value=1)"

      3. Reload
      ./jboss-cli.sh -c --command="reload"

      4. Create simple-jsp.war as exploded deployment:
      mkdir $JBOSS_HOME/standalone/deployments/simple-jsp.war

      5. Create original jsp content:
      echo "original" > $JBOSS_HOME/standalone/deployments/simple-jsp.war/index.jsp

      6. Deploy simple-jsp.war:
      touch $JBOSS_HOME/standalone/deployments/simple-jsp.war.dodeploy

      7. Verify content of jsp:
      curl http://localhost:8080/simple-jsp/index.jsp

      8. Update jsp:
      echo "changes" > $JBOSS_HOME/standalone/deployments/simple-jsp.war/index.jsp

      9. Verify that jsp is still original content:
      curl http://localhost:8080/simple-jsp/index.jsp

      Show
      1. Disable file watch service: ./jboss-cli.sh -c --command="/subsystem=undertow/servlet-container=default:write-attribute(name=disable-file-watch-service,value=true)" 2. (optional) shorten check-interval: ./jboss-cli.sh -c --command="/subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=check-interval,value=1)" 3. Reload ./jboss-cli.sh -c --command="reload" 4. Create simple-jsp.war as exploded deployment: mkdir $JBOSS_HOME/standalone/deployments/simple-jsp.war 5. Create original jsp content: echo "original" > $JBOSS_HOME/standalone/deployments/simple-jsp.war/index.jsp 6. Deploy simple-jsp.war: touch $JBOSS_HOME/standalone/deployments/simple-jsp.war.dodeploy 7. Verify content of jsp: curl http://localhost:8080/simple-jsp/index.jsp 8. Update jsp: echo "changes" > $JBOSS_HOME/standalone/deployments/simple-jsp.war/index.jsp 9. Verify that jsp is still original content: curl http://localhost:8080/simple-jsp/index.jsp

      'check-interval' attribute should determine how often to recompile the jsp file when 'disable-file-watch-service' is set to "true". Instead it appears to be ignored. even when the file watch service is disabled.

            flaviarnn Flavia Rainone
            rhn-support-mshirley Marc Shirley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: