add a sample with tomcat
fix for warnning
add file size comparison