We use one Apache server which connects over the modjk to 4 Tomcat/JBoss-Instances. When restarting one Tomcat/JBoss instance, requests are processed after tomcat was deployed but before our webapp has deployed. So for 2 minutes (thats the time needed for deploying our webapp) tomcat answers with
MAPPING configuration error for request URI /index.jsp
Is there a possibility to prevent Tomcat from processing requests before jboss has started completely ?
We use the Netscaler hardware device for our load balancing along with Apache and the Mod J/k module. Netscaler will not send a request to the machine running Apache if Apache is down. Thus, a request never hits the JBoss instance unless Apache is running. Simply stopping Apache on the machine will guarantee no requests hitting that machine.