2 Replies Latest reply on Nov 5, 2002 11:32 AM by robho

    Auto-reload of servlets doesn't  work

    robho

      Hello everyone,

      I'm facing the following problem: deploying the myApp.war-file works fine, but if I change only a class-file, e.g. a servlet, it is not reloaded automatically while the JBoss/Tomcat bundle (jboss-3.0.3_tomcat-4.1.12.zip with w2k) is running.

      At Tomcat stand-alone it is possible to add the -tag with the reloadable-attribute to the server.xml - but where to put similar settings at the JBoss/Tombat bundle?

      TIA
      bob

        • 1. Re: Auto-reload of servlets doesn't  work
          joelvogt

          are you deploying as a war file or an expanded directory? If a war file then something isn't quite right. Otherwise touch your web.xml to trigger a redeploy

          • 2. Re: Auto-reload of servlets doesn't  work
            robho

            > are you deploying as a war file or an expanded
            > directory? If a war file then something isn't quite
            > right. Otherwise touch your web.xml to trigger a
            > redeploy

            Hi!

            if I copy the whole expanded directory structure or the packaged war-file into the deploy directory everything is working fine (also the servlets are updated automatically).

            My problem: I would like to change my servlets directly in the deploy directory in my expanded war-directory and then they should be updated automatically.

            Just for better understanding:
            1.step: I deploy my expanded directory
            2.step: I update an existing servlet in the deployed directory structure
            3.step: I call the servlet but see the old one, not the updated.


            Thanks for any new ideas!