|
From: Roman R. <r.r...@we...> - 2005-04-22 21:21:50
|
Hi Spring developers! I=B4m using Spring for my current WebApp project and I found a strange behav= iour of Spring. I=B4m not sure if I=B4m doing something wrong or if it=B4s a bug. So, perhaps yo= u can take a look at. First, here is my posting in the Spring forum which describes my problem: http://forum.springframework.org/viewtopic.php=3Ft=3D5003 I tried to debug Spring to track the problem down. Here=B4s what I have: 1. All beans which are implementing the interface DisposableBean are store= d in the map AbstractBeanFactory.disposableBeans. But the method AbstractB= eanFactory.destroySingletons() gets only called for the factory "-servlet.= xml", not for the other two xml files. 2. On shutdown, ContextLoaderListener.contextDestroyed() calls ContextLoad= er.closeWebApplicationContext(). But=20 servletContext.getAttribute(WebApplicationContext.ROOT=5FWEB=5FAPPLICATION=5FCON= TEXT=5FATTRIBUTE); always returns null. Perhaps the ServletContext is destroyed when the List= ener gets informed=3F While my app is running,=20 servletContext.getAttribute(WebApplicationContext.ROOT=5FWEB=5FAPPLICATION=5FCON= TEXT=5FATTRIBUTE); returns the correct application context. I=B4m shutting down my webapp with the url:=20 http://localhost:8080/manager/stop=3Fpath=3D/mywebapp My environment: Tomcat 5.5.7 Java 1.5 Spring 1.2RC1 Please let me know if you need more information. Best regards, Roman =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/=3Fmc=3D021193 |