Quartz job runs twice when deployed on tomcat 6/Ubuntu 10.04LTS

后端 未结 3 494
孤独总比滥情好
孤独总比滥情好 2020-12-16 05:58

I run a Spring Framework/SmartGWT based web-app, with now an added Quartz job. The job is supposed to run every day at 2am, and picks winners from a DB table. From my logs I

3条回答
  •  暖寄归人
    2020-12-16 06:36

    For me, the auto deployment was the problem, and to disable it I had to specify the following attributes on the host element in my server.xml:

    deployOnStartup="false"
    autoDeploy="false"
    

    So my host element looked like this:

      
    

    I found this post detailing the problem in a different way that helped me resolve this issue.

提交回复
热议问题