Thanks guys. Using ServletContextListner and Spring's ContextLoadListener 
indeed resolved issues in tomcat on both windows and Linux platforms.

- Raza.

-----Original Message-----
From: Mark Eggers [mailto:its_toas...@yahoo.com]
Sent: Mon 4/22/2013 6:00 PM
To: Tomcat Users List
Subject: Re: Tomcat 7.0 & spring web applcaiton context - Fedora 17
 
On 4/22/2013 2:34 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Khurram,
>
> On 4/22/13 6:26 AM, Khurram Raza wrote:
>> So are there any thoughts on this issue which I am not able to
>> resolve yet?
>
> I'm not sure anyone really understands what is going on.
>
> You are using a Servlet to configure (and apparently shut-down)
> Spring. When the servlet is taken out of service in a particular order
> (perhaps having to do with an environmental issue -- Linux vs.
> Windows?) you get errors because Spring is already shut-down somehow.
>
> My first question is this: why is Spring shutting down before you
> should it down yourself?
>
> My second question would be this: why aren't you using the
> ServletContextListener(s) that ship with Spring that IIRC were built
> for this exact purpose? I think you might want to take a look at how
> you are using Spring and perhaps make a few changes.
>
> Finally, ServletContextListeners are /really/ the way to go, here:
> using a Servlet and <load-on-startup /> is a really crude way to
> script your server's startup. This is precisely why
> ServletContextListeners were invented.
>
> - -chris

Yep, there's even a relevant thread on the Spring forums about how to 
use Spring's listener and dispatch servlet in the in the same application.

Just search for DispatcherServlet and ContextLoadListener.

. . . . just my two cents.
/mde/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to