3 Replies Latest reply on Jan 23, 2008 2:16 PM by dmfarb

    Force rescan for .war deployment.

    dmfarb


      I am having problems deploying .war files on Windows XP and JBoss 4.0.0. Sometimes when I drop a .war file in the deploy directory it works, other times it does not.

      Is there a manual rescan command via the JMX console or someplace that will force a rescan of the deploy directory?

      I have loked for it, searched for it, but so far, no joy.

        • 1. Re: Force rescan for .war deployment.
          peterj

          You can manually deploy an application (including a war file), by invoking the deploy method on the jboss.system:service=MainDeployer mbean. You can do this through the JMX Console or twiddle. (There are two deploy() methods, you can use either one but the one that takes a String is probably a little simpler. Pass it the full path name of the war file.)

          • 2. Re: Force rescan for .war deployment.
            dmfarb

            Thanks, that seems to work, although why it doesn't work any longer to just drop the .war in the deploy directory is a question for another day.

            • 3. Re: Force rescan for .war deployment.
              dmfarb

              Dropping a .ear in the directory works fine...

              Well, its all magic anyway. Must be the phase of the moon or something