tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: leak if jspServlet.destroy() fails
Date Fri, 01 Jul 2016 16:06:13 GMT
On 01/07/2016 16:41, Romain Manni-Bucau wrote:
> Hello guys,
> if a jspDestroy() throws an Exception then the instance manager is not
> called which can lead to some leaks depending the implementation (see
> org.apache.jasper.servlet.JspServletWrapper#destroy)
> Would it be possible to have a way to release/cleanup the jsp context
> through the instance manager or to call destroyInstance properly?

I think wrapping the call to destroy in a try/catch would be the way to
go. It would be worth a check to see if there are any other places where
similar issues could occur with JSPs.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message