Fixed bugs in tomcat role