Fixed pom and web.xml. Now we are able to domvn jboss-as:deploy/undeploy/redeploy while the server is running.