mvn clean package Then open http://127.0.0.1:8080/wildfly-security-runas-1.0-SNAPSHOT/login.xhtml in browser. Then press test, then press login and again press test