Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC07018559 for ; Thu, 2 Jul 2015 08:22:45 +0000 (UTC) Received: (qmail 53736 invoked by uid 500); 2 Jul 2015 08:22:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53665 invoked by uid 500); 2 Jul 2015 08:22:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 53654 invoked by uid 99); 2 Jul 2015 08:22:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 08:22:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E63D61817A8 for ; Thu, 2 Jul 2015 08:22:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Cd82P7j4TXep for ; Thu, 2 Jul 2015 08:22:32 +0000 (UTC) Received: from thor.wissensbank.com (h2401423.stratoserver.net [81.169.250.120]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id E40F44545A for ; Thu, 2 Jul 2015 08:22:31 +0000 (UTC) Received: from thor.wissensbank.com (localhost [127.0.0.1]) by thor.wissensbank.com (Postfix) with ESMTP id 76B1215A60027 for ; Thu, 2 Jul 2015 10:22:25 +0200 (CEST) Received: by thor.wissensbank.com (Postfix, from userid 500) id 673E815A6004E; Thu, 2 Jul 2015 10:22:25 +0200 (CEST) Received: from [192.168.245.214] (HSI-KBW-46-237-244-162.hsi.kabel-badenwuerttemberg.de [46.237.244.162]) (Authenticated sender: andre.warnier@ice-sa.com) by thor.wissensbank.com (Postfix) with ESMTPA id ECCF815A60027 for ; Thu, 2 Jul 2015 10:22:24 +0200 (CEST) Message-ID: <5594F4BF.8030502@ice-sa.com> Date: Thu, 02 Jul 2015 10:22:23 +0200 From: =?windows-1254?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Spring Scheduled Task is triggered multiple times References: <5594E621.6090100@ice-sa.com> In-Reply-To: Content-Type: text/plain; charset=windows-1254; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 of your problem. It is for other people on this list later who might have an idea, to save them having to ask for it. And the not top-posting bit, is because top-posting makes it more difficult for someone coming later, to figure out what you are responding to. Zoran Avtarovski wrote: > Sorry Andre, > > I should have said that my tomcat config is pretty much standard, but here > goes any way: > > Server.xml > > > > > > className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> > > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > > > > > resourceName="UserDatabase"/> > > > unpackWARs="true" autoDeploy="true"> > directory="logs" > prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> > > > > > > > HTTP connect via ModJK > > Workers.properties file > # Define 1 real worker using ajp13 > worker.list=pain > # Set properties for pain worker (ajp13) > worker.pain.type=ajp13 > worker.pain.lbfactor=1 > worker.pain.host=localhost > worker.pain.port=8009 > > Web.xml > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > Name > > > Description > > > contextConfigLocation > /WEB-INF/classes/applicationContext.xml > > > > javax.servlet.jsp.jstl.fmt.localizationContext > > com.sparecreative.localisation.LocalisedMessages > > > UrlRewriteFilter > > org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ass> > > > struts-prepare > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter filter-class> > > actionPackages > com.sparecreative > > > > struts-execute > > org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter filter-class> > > > sitemesh > > com.opensymphony.module.sitemesh.filter.PageFilter ass> > > > UrlRewriteFilter > /* > REQUEST > > > > struts-prepare > /audio/* > REQUEST > FORWARD > > > struts-prepare > /* > REQUEST > FORWARD > > > > sitemesh > /* > FORWARD > REQUEST > > > > struts-execute > *.action > REQUEST > FORWARD > > > struts-execute > *.ftl > REQUEST > FORWARD > > > struts-execute > /struts/* > REQUEST > FORWARD > > > > org.springframework.web.context.ContextLoaderListener ener-class> > > > Connector > > com.fredck.FCKeditor.connector.ConnectorServlet ss> > > baseDir > /image/ > > 1 > > > > Connector > > /fckeditor/editor/filemanager/browser/default/connectors/jsp/c > onnector > > > > jsp > *.jsp > *.jssp > *.mp3 > *.csp > *.jspx > > > > > css > text/css;charset=UTF-8 > > > js > application/x-javascript;charset=UTF-8 > > > > index.jsp > index.html > > > > Authorised to use the site > role > > > > My DB Connection > jdbc/myDB > javax.sql.DataSource > Container > > > > PainData > > Restricted Access > > /protected/* > > > > role > > > > > > FORM > MyApp > > /login.jsp > /login-error.jsp > > > > > > > Thanks again. > > > Z. > > On 2/07/2015 5:20 pm, "Andr� Warnier" wrote: > >> 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 on oracle java 8. >>> >>> Tomcat is configured as a stand alone not a cluster and I had a look at >>> the >>> servers.xml file and it only has one host. >>> >>> It has to be the way we have tomcat configured, but I can�t see what. I >>> changed from quartz to spring scheduling thinking the issue was quartz, >>> but >>> that made no difference. >>> >>> I�d really appreciate any pointers at this stage. >>> >> And so would we.. >> >> If you believe that the issue may be in the configuration, how about >> copying that >> configuration file here for instance ? >> (Remove any comments or sensitive information). >> Also try to be a bit more precise in terms of what software you have >> installed. >> In the "bin" directory of Tomcat (/usr/share/tomcat7/bin), there is a >> version.sh script. >> Run it and copy the output here. >> >> (You may have a bit of trouble there under Ubuntu, because you probably >> have to set >> JRE_HOME first. Do a "which java" and follow the links going through >> /etc/alternatives, >> until you find something with "jre/bin/java" in it. JRE_HOME is the path >> ending in "jre/". >> Or find out how /etc/init.d/tomcat7 does it.) >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org