NXP-10598 fix deployment in tomcat (thread context class loader in dev mode, initialize runtime before servlets)