fix engine integration for tomcat and glassfish