Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A8B010D0A for ; Mon, 8 Jul 2013 07:19:54 +0000 (UTC) Received: (qmail 3939 invoked by uid 500); 8 Jul 2013 07:19:51 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 3505 invoked by uid 500); 8 Jul 2013 07:19:51 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 3188 invoked by uid 99); 8 Jul 2013 07:19:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jul 2013 07:19:48 +0000 Date: Mon, 8 Jul 2013 07:19:48 +0000 (UTC) From: "Rainer Jung (JIRA)" To: dev@tomcat.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MTOMCAT-230) CLONE - Plugin uploads WAR file twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MTOMCAT-230?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D137= 01837#comment-13701837 ]=20 Rainer Jung commented on MTOMCAT-230: ------------------------------------- OK, your workers.properties are pretty minimal but shouldn't pose problems.= A more production ready config can ba found in the mod_jk source download = or in subversion under http://svn.apache.org/viewvc/tomcat/jk/trunk/conf/workers.properties?view= =3Dco and http://svn.apache.org/viewvc/tomcat/jk/trunk/conf/httpd-jk.conf?view=3Dco At least "recovery_options" should be considered. You are using the peruser MPM, not sure what implications that could have. apache2/access_log 127.0.0.1 - - [08/Jul/2013:11:46:41 +0700] "PUT /manager/text/deploy?path= =3D%2F&update=3Dtrue HTTP/1.1" 401 2474 127.0.0.1 - - [08/Jul/2013:11:46:42 +0700] "PUT /manager/text/deploy?path= =3D%2F&update=3Dtrue HTTP/1.1" 200 90 The first request with status code 401 needed an authorization which was th= en passed in the second request. So from the apache point of view there was= only one "real" request (the second one, the first one was rejected). apache/mod_jk.log [Mon Jul 08 11:45:12.052 2013] [10703:139858959705920] [error] extension_fi= x::jk_uri_worker_map.c (564): Could not find worker with name 'ajp13' in ur= i map post processing. This indicates, that somewhere else in your config (not presented to us), y= ou configured a forwarding via a worker named "ajp13" (or unnamed), which i= s not present in your workers.properties. That shouldn't be related to the = double upload though. The next lines indicate, that there is more config you didn't show (JkReque= stLogFormat): [Mon Jul 08 11:46:42.023 2013] worker1 localhost 0.414589 [Mon Jul 08 11:46:58.403 2013] worker1 localhost 16.366236 Apart from these comments I don't see anything special here, no indication,= that mod_jk does a double post. You could check the Tomcat access log file= . =20 > CLONE - Plugin uploads WAR file twice > ------------------------------------- > > Key: MTOMCAT-230 > URL: https://issues.apache.org/jira/browse/MTOMCAT-230 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6 > Affects Versions: 2.0 > Environment: Win7/64, Maven 3.0.4 > Reporter: Stanislav Grushevskiy > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > > To reproduce this issue you need to install apache and mod_jk and deploy = application to apache, mod_jk, tomcat. > If you deploy just to tomcat you will not reproduce it. > This situation is reproduced in tomcat 6, 7. > When I deploy my WAR using maven, the target war (exact the same one) is = being uploaded to the server twice. Can someone explain that? > I am using this on my module: > {code}clean install org.apache.tomcat.maven:tomcat6-maven-plugin:2.0:rede= ploy {code} > From the Log file > {code =3Dxml} > [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ mobile-server --- > [INFO] Packaging webapp > [INFO] Assembling webapp [mobile-server] in [C:\develope\mobile\mobile-se= rver\target\mobile-server] > [INFO] Processing war project > [INFO] Copying webapp resources [C:\develope\mobile\mobile-server\src\mai= n\webapp] > [INFO] Webapp assembled in [241 msecs] > [INFO] Building war: C:\develope\mobile\mobile-server\target\mobile-serve= r.war > [INFO]=20 > [INFO] <<< tomcat6-maven-plugin:2.0:redeploy (default-cli) @ mobile-serve= r <<< > [INFO]=20 > [INFO] --- tomcat6-maven-plugin:2.0:redeploy (default-cli) @ mobile-serve= r --- =20 > [INFO] Deploying war to http://myserver.eu/pra-mobile-server =20 > Uploading: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server= &update=3Dtrue > Uploaded: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server&= update=3Dtrue (12678 KB at 49.3 KB/sec) > Uploading: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server= &update=3Dtrue > Uploaded: http://myserver.eu/manager-test/deploy?path=3D%2Fmobile-server&= update=3Dtrue > {code} > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 http://maven.apac= he.org/maven-v4_0_0.xsd"> > 4.0.0 > > eu.company.prj.pramobile > mobile-parent > ../mobile-parent/pom.xml > 1.0-SNAPSHOT > > mobile-server > war > mobile server > > 1.1.2 > > > > com.springsource.repository.libs-milestone > SpringSource Enterprise Bundle Repository - libs > http://repo.springsource.org/libs-milestone/ > > > > > ${project.groupId} > mobile-test > ${project.version} > test > > > ${project.groupId} > mobile-common > ${project.version} > > > > org.springframework > spring-asm > ${version.spring} > > > org.springframework > spring-aop > ${version.spring} > > > org.springframework.security > spring-security-config > ${version.spring} > > > org.springframework > spring-web > ${version.spring} > > > org.springframework > spring-oxm > ${version.spring} > > > org.springframework > spring-webmvc > ${version.spring} > > > org.springframework.security > spring-security-web > ${version.spring} > > > commons-codec > commons-codec > 1.7 > > > javax.servlet > jsp-api > 2.0 > provided > > > commons-io > commons-io > 2.4 > > > commons-fileupload > commons-fileupload > 1.2.2 > > > javax.servlet > servlet-api > 2.5 > provided > > > javax.servlet > jstl > 1.1.2 > provided > > > taglibs > standard > 1.1.2 > provided > > > commons-httpclient > commons-httpclient > 3.1 > > > net.sf.ehcache > ehcache > 1.6.1 > > > org.springmodules > spring-modules-cache > 0.8a > > > > org.springframework > spring > > > gigaspaces > gigaspaces-ce > > > jini > jsk-lib > > > jini > jsk-platform > > > jini > mahalo > > > jini > reggie > > > jini > start > > > jini > boot > > > jini > webster > > > commons-attributes > commons-attributes-api > > > commons-attributes > commons-attributes-compiler > > > jboss > javassist > > > jboss > jboss-cache > > > jboss > jboss-common > > > jboss > jboss-jmx > > > jboss > jboss-minimal > > > jboss > jboss-system > > > jcs > jcs > > > jgroups > jgroups-all > > > geronimo-spec > geronimo-spec-jta > > > xpp3 > xpp3_min > > > xjavadoc > xjavadoc > > > opensymphony > oscache > > > ehcache > ehcache > > > > > org.quartz-scheduler > quartz > ${version.quartz} > > > javax.mail > mail > 1.4.5 > > > org.apache.commons > commons-lang3 > 3.1 > > > > org.mockito > mockito-all > 1.9.5 > test > > > org.kubek2k > springockito > 1.0.4 > test > > > org.kubek2k > springockito-annotations > 1.0.5 > test > > > > org.springframework > spring-test-mvc > 1.0.0.M2 > test > > > org.springframework > spring-context > 3.1.0.RELEASE > > > > mobile-server > > > org.mortbay.jetty > maven-jetty-plugin > 6.1.10 > > ${basedir}/src/test/resources/jetty-env.xml<= /jettyEnvXml> > > src/test/resources/webdefault.xml > 0 > 8001 > 5 > > > org.apache.commons.logging.Log > org.apache.commons.logging.impl.SimpleLog<= /value> > > > log4j.configurationFile > file:${project.basedir}/src/main/resources= /log4j.xml > > > > > > mysql > mysql-connector-java > 5.1.9 > > > > > > maven-surefire-plugin > 2.10 > > true > 10 > > true > > > > > maven-war-plugin > 2.1.1 > > > WEB-INF/web.xml > > > > > org.codehaus.mojo > jaxb2-maven-plugin > 1.5 > > > > xjc > > > > > UTF-8 > true > eu.company.prj.pra.mobile.server.generated.p= lace1 > src/main/resources/META-INF/schema > ${basedir}/src/main/java/ > true > false > > > > > org.apache.tomcat.maven > tomcat6-maven-plugin > 2.0 > =20 > -Dmaven.tomcat.uriEncoding=3DUTF-8 > ${tomcat-maven-plugin.url} > ${tomcat-maven-plugin.username} > ${tomcat-maven-plugin.password} > > > > > > > > > > > > > > > > > > > > > {code} > Parent pom: > {code} > eu.company.prj.mobile > mobile-parent > 1.0-SNAPSHOT > pom > mobile project parent > > 3.1.1.RELEASE > 1.9.11 > 1.1.1 > 2.1.6 > 1.5.8 > UTF-8 > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.3.1 > > ${project.build.sourceEncoding} > 1.6 > 1.6 > > > > > > just properties with u/p ... > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org