When you use the deploy/undeploy tasks if the dropins monitoring is disabled the tasks will fail because they expect to see a message in the log when the application is running. If dropins monitoring is disabled I think the deploy should work. Either the server should be restarted, or it should expect the calling ant script to deal with that, perhaps with an log message being written. Or something else I didn't write in here.