Mantis - Resin
Viewing Issue Advanced Details
6095 minor always 09-20-17 09:00 10-26-17 16:09
wileysaw  
ferg  
normal  
closed 4.0.53  
not fixable  
none    
none  
0006095: webapps/ROOT special use case for web-app id="/"
Configuring both a

<web-app id="/ROOT" document-directory="webapps/ROOT”/>

&

<web-app id="/" document-directory="webapps/foo" />

can result in a double start of application at the same directory:


[17-09-07 12:18:44.635] [resin-16] INFO WebApp - WebApp[production/webapp/default/ROOT,STARTING] Initializing Spring FrameworkServlet 'Spring MVC Dispatcher Servlet'
[17-09-07 12:18:46.551] [resin-16] INFO Version - HV000001: Hibernate Validator 4.3.0.Final
[17-09-07 12:18:47.096] [resin-16] INFO WebApp - WebApp[production/webapp/default/ROOT] active

And then second set of same start up routine is triggered and says foo web app is active

[17-09-07 12:18:57.995] [resin-24] INFO WebApp - WebApp[production/webapp/default/foo,STARTING] Initializing Spring FrameworkServlet 'Spring MVC Dispatcher Servlet’
[17-09-07 12:19:00.488] [resin-24] INFO WebApp - WebApp[production/webapp/default/foo] active
[17-09-07 12:19:00.488] [main] INFO Host - Host[production/host/default] active
[17-09-07 12:19:00.498] [resin-38] INFO WebApp - WebApp[production/webapp/admin.resin/ROOT] active
[17-09-07 12:19:00.499] [main] INFO Host - Host[production/host/admin.resin] active
[17-09-07 12:19:00.499] [main] INFO ServletService - ServletService[id=app-0,cluster=app] active
 resin_local_war_53_1.xml [^] (8,426 bytes) 09-20-17 09:00

Notes
(0006802)
ferg   
10-26-17 16:09   
/ROOT is a reserved web-app, which is used as the name for the root "/" web app. Internally, the "/" web app is named, "/ROOT".

So, it's not possible to create a pair of web-apps as in the bug report, because "/" and "/ROOT" can't be distinguished internally.