Tomcat functions