helper to run tomcat7 directly
fix cookie handling