Mantis - Resin
Viewing Issue Advanced Details
587 minor sometimes 12-27-05 17:26 02-09-06 19:02
bb  
ferg  
normal  
closed 3.0.15  
fixed  
none    
none 3.0.18  
0000587: JspCompiler sometimes halts
I used Ant to batch compile JSPs:
<java classname="com.caucho.jsp.JspCompiler" fork="yes" failonerror="true">
...
</java>

But sometimes this task halts after output some warning info (usually it should end after the output).

Notes
(0000708)
bb   
01-14-06 00:19   
I found the problem:

whenever I add a listener in web.xml, the JspCompiler halts.

  <listener><listener-class>xxx.yyy.MyContextListener</listener-class></listener>

Once this listener line commented out, JspCompiler exits normally.

BTW, I'm using command line as :
java com.caucho.jsp.JspCompiler -app-dir "/opt/www/foo" test/foo.jsp

(0000833)
ferg   
02-01-06 12:53   
jsp/193d
(0000873)
bb   
02-09-06 18:57   
The newest snap-20060209 declares this fixed, but actually not.

The JspCompiler still hangs when compilation finished, unless the ContextListener be commented out in web.xml
(0000874)
bb   
02-09-06 19:02   
What's more, the snap s060209 disabled JSP 2.0 even web.xml declared: '<web-app version="2.4">'

This behaves differently from 3.0.15