Mantis - Resin
Viewing Issue Advanced Details
1086 minor always 05-03-06 10:58 06-28-06 12:04
anonymous  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0001086: com.caucho.config.LineConfigException causes webapp to be reloaded repeatedly even when no files have changed
We have an error in our web.xml which causes a com.caucho.config.LineConfigException. This causes the webapp
to be in an "error" state:
[2006-05-03 10:36:03.170] WebAppController$1802010236[/mytleak] error [2006-05-03 10:36:03.170] WebAppAdmin[resin:type=WebApp,Server=default,Host=default,name=/mytleak] lifecycleEvent `error'

Out <dependency-check-interval> is set to 2 minutes. It looks like Resin is the
LineConfigException is causing Resin to mark the webapp as AlwaysModified. So
every 2 minutes the webapp is being reloaded:
[2006-05-03 10:38:03.616] AlwaysModified[] is modified
[2006-05-03 10:38:03.616] WebAppController$1802010236[/mytleak] stopping [2006-05-03 10:38:03.616] WebAppAdmin[resin:type=WebApp,Server=default,Host=default,name=/mytleak] lifecycleEvent `stopping' [2006-05-03 10:38:03.616] WebApp[http://localhost:7900/mytleak] [^] stopping
[2006-05-03 10:38:03.616] WebApp[http://localhost:7900/mytleak] [^] stopped [2006-05-03 10:38:03.616] WebApp[http://localhost:7900/mytleak] [^] destroyed
[2006-05-03 10:38:03.616] ServletServer clearCache
[2006-05-03 10:38:03.619] WebAppController$1802010236[/mytleak] stopped
[2006-05-03 10:38:03.619] WebAppAdmin[resin:type=WebApp,Server=default,Host=default,name=/mytleak] lifecycleEvent `stopped'
[2006-05-03 10:38:03.619] WebAppController$1802010236[/mytleak] starting

But nothing in the webapp (including web.xml) has changed. So the
LineConfigException still occurs, and Resin got into an non-ending loop
reloading the webapp every 2 minutes.

I would like to see Resin not try to reload the webapp unless something has
actually changed. I don't want the unnecessary reloading to slow down other
webapps being served by the same Resin instance.

Notes
(0001105)
billa   
05-03-06 14:14   
I just discovered that 3.0.19 has a redeploy-check-interval.
It looks like that's what I was asking for.