java and tomcat in vm