You may choose to experiment by deploying the same app in a compute engine machine with Tomcat. There is already a
Tomcat Bitnami stack ready to be deployed from the developers console. If you choose to use this facility, you can ascertain your app works if deployed on an independent Tomcat server, as you intend to do in the end.