Exception handling in deploying war