Re: Spring Scheduled Task is triggered multiple times

2015-07-14 Thread Zoran Avtarovski
Chris, Andre, Thanks for the tip re the context.xml file. The Weird thing is, if I delete the path attribute, NetBeans adds it automatically using the project name. I suspect this is an issue with Netbeans and I¹ll have a look at how to disable it. Thanks again. I really think this is one of th

Re: Spring Scheduled Task is triggered multiple times

2015-07-05 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 7/3/15 2:41 AM, Zoran Avtarovski wrote: I have a context.xml in the META-INF directory which sets up a db container and jndi datasource realm, could this be the issue? This is unconnected with your init

Re: Spring Scheduled Task is triggered multiple times

2015-07-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 7/3/15 2:41 AM, Zoran Avtarovski wrote: > I have a context.xml in the META-INF directory which sets up a db > container and jndi datasource realm, could this be the issue? > > antiResourceLocking="false" path="/pain"> This is unconne

Re: Spring Scheduled Task is triggered multiple times

2015-07-03 Thread Zoran Avtarovski
Neven, You¹re a genius. The web.xml was fine but you got me thinking about spring configuration. We had one of our young guys run into an issue with spring. He implemented some work around and nobody bothered checking because it was minor bit of code on the periphery of the app. Anyway I searche

RE: Spring Scheduled Task is triggered multiple times

2015-07-03 Thread Caldarale, Charles R
> From: Neven Cvetkovic [mailto:neven.cvetko...@gmail.com] > Subject: Re: Spring Scheduled Task is triggered multiple times > On 3 Jul 2015 08:42, "Zoran Avtarovski" wrote: > > > > I went through the logs in much greater detail today and I noticed when >

Re: Spring Scheduled Task is triggered multiple times

2015-07-03 Thread Neven Cvetkovic
Hey Zoran, On 3 Jul 2015 08:42, "Zoran Avtarovski" 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 H

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread Zoran Avtarovski
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 And the number of times the log entry appears correlates to the number o

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread Zoran Avtarovski
Hi Andre, On 2/07/2015 11:59 pm, "André Warnier" wrote: >Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Zoran, >> >> On 7/2/15 1:22 AM, Zoran Avtarovski wrote: >>> We have a struts2 based app that uses spiring scheduling to trigger >>> a task every morni

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread Zoran Avtarovski
Hi Christopher, On 2/07/2015 11:52 pm, "Christopher Schultz" wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA256 > >Zoran, > >On 7/2/15 1:22 AM, Zoran Avtarovski wrote: >> We have a struts2 based app that uses spiring scheduling to trigger >> a task every morning at 6am. >> >> The problem

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 7/2/15 1:22 AM, Zoran Avtarovski wrote: We have a struts2 based app that uses spiring scheduling to trigger a task every morning at 6am. The problem we have is that task in triggered multiple times, simultan

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 7/2/15 1:22 AM, Zoran Avtarovski wrote: > We have a struts2 based app that uses spiring scheduling to trigger > a task every morning at 6am. > > The problem we have is that task in triggered multiple times, > simultaneously. What eviden

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread André Warnier
Ok, just two more things : 1) don't top-post 2) provide the precise java and tomcat versions and while you're at it, copy the first line of the Apache httpd error log (when it starts), as it gives the versions for the other things. The information is not for me, as I have no idea about the gist

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread Zoran Avtarovski
Sorry Andre, I should have said that my tomcat config is pretty much standard, but here goes any way: Server.xml HTTP connect via ModJK Workers.properties file # Define 1 real worker using ajp1

Re: Spring Scheduled Task is triggered multiple times

2015-07-02 Thread André Warnier
Zoran Avtarovski wrote: We have a struts2 based app that uses spiring scheduling to trigger a task every morning at 6am. The problem we have is that task in triggered multiple times, simultaneously. We have an Ubuntu 14.04.1 Server using the standard tomcat 7 installed using apt-get and running