Deploying Java Applications on Apache Tomcat: Best Practices for Performance and Security