In a tomcat JSP application I have this directory layout:
webapps/ myProjectName/ index.jsp WEB-INF/ classes/ myp
You should not have .java source files anywhere under WEB-INF. Keep compilation and packaging separate.