contextDestroyed and getRealPath question

2005-11-03 Thread Andy Kriger
I am trying to do something in contextDestroyed that requires the filesystem directory of the web application. However, once contextDestroyed has been called that path no longer exists. public void contextDestroyed(ServletContextEvent event) { String path = event.getServletContext().getRea

Re: finalize question

2005-11-02 Thread Andy Kriger
> See ... > http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 > > (I really need to update the FAQ on this one) > > -Tim Thanks for the info. A followup question... "The second one is where the application has ThreadLocal data that is attached to a container thre

RE: finalize question

2005-11-02 Thread Andy Kriger
>> From: Andy Kriger [mailto:[EMAIL PROTECTED] >> Subject: finalize question >> >> Problem is, I'm not seeing any finalize methods being called. > > Reliance on finalizers is a sign of extremely poor application design. > First, it can be a significa

finalize question

2005-11-02 Thread Andy Kriger
I have a webapp that causes Tomcat to die with an OutOfMemoryError due to PermGen after about 10 reloads. I am trying to determine if there is a memory leak in my code or maybe even one of our 3rd-party libraries. I am using AspectJ to log whenever any object's finalize method is called. Problem is