I've got a foo.war
file from a third-party vendor. I've defined a context in my Tomcat configuration by creating conf/Catalina/localhost/foo.xml
that contains:
<Context docBase="/path/to/foo.war" ...> ... </Context>
I want Tomcat to load up the foo context at startup. But the WEB-INF/web.xml
(deployment descriptor) in the foo.war
file does not include a <load-on-startup
>, so Tomcat waits until the first request. I'd really rather not unpack the third-party foo.war
to edit their web.xml. Plus, I'd have to do it every time the vendor releases a new version of their .war.
Is there any way within Tomcat configuration to tell Tomcat to load the foo context at startup? I know that within the <Context>
element you can set paramaters, env vars, etc without editing the web.xml. But I can't find anything tin the Tomcat docs about loading on startup.