sample for the tomcat and mysql