tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Spring Scheduled Task is triggered multiple times
Date Fri, 03 Jul 2015 12:41:29 GMT
> From: Neven Cvetkovic [mailto:neven.cvetkovic@gmail.com] 
> Subject: Re: Spring Scheduled Task is triggered multiple times

> On 3 Jul 2015 08:42, "Zoran Avtarovski" <zoran@sparecreative.com> wrote:
> >
> > I went through the logs in much greater detail today and I noticed when
> > the server starts I get multiple Spring loads in the log:
> >
> > org.apache.catalina.core.ApplicationContext.log Initializing Spring root
> > WebApplicationContext

> How are you loading your spring context? Where do you initialize it? Please
> share your web.xml, it is probably there.

I wonder if the OP erroneously placed his Spring config in Tomcat's conf/web.xml directory
rather than correctly in the webapp's META-INF/web.xml.  Putting it in the global location
means it's loaded by each webapp rather than just the desired one.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


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


Mime
View raw message