Mantis - Resin
Viewing Issue Advanced Details
4707 minor always 08-10-11 11:25 08-24-11 16:43
cowan  
ferg  
normal  
closed 4.0.20  
fixed  
none    
none 4.0.22  
0004707: Resin restarts from MODIFIED while running in IntelliJ IDEA
Symptoms:

While running Resin in IDEA using IDEA generated resin.xml, Resin periodically restarts with exit code MODIFIED.

Modified log is:

[11-08-09 16:05:22.202] {resin-48} /META-INF/caucho/app-default.xml length is modified (12223 -> 0)

Analysis:

I tracked this to the DeployControllerAlarm.handleAlarm calling ClasspathPath:getLength(), which returns 0 because the resource was not found. This is due to the Alarm running with the default Sun classloader and not Caucho's loader.

IDEA Resin configuration does not set the java.system.classloader, so some threads are running without com.caucho.loader.SystemClassLoader.

Workaround is to add "-Djava.system.class.loader=com.caucho.loader.SystemClassLoader" to VM Parameters box in IDEA's Resin run configuration.
Rep by M. Schmidt
related to 0005156closed ferg ResinEmbed restarts due to modified 

There are no notes attached to this issue.