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 EB57B102AD for ; Wed, 28 Aug 2013 08:48:58 +0000 (UTC) Received: (qmail 99401 invoked by uid 500); 28 Aug 2013 08:48:56 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 99322 invoked by uid 500); 28 Aug 2013 08:48:53 -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 99294 invoked by uid 99); 28 Aug 2013 08:48:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Aug 2013 08:48:52 +0000 Date: Wed, 28 Aug 2013 08:48:52 +0000 (UTC) From: "George Smith (JIRA)" To: dev@tomcat.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MTOMCAT-235) War file is being uploaded twice - Cookie rejected 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-235?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] George Smith updated MTOMCAT-235: --------------------------------- Description:=20 When I run maven task for (re)deploy, the file is always being uploaded twi= ce. I think the problem is related to manager path.=20 In front of Tomcat there is a Apache server (from security reasons), which = redirects requests from /manager-server-app to /manager on Tomcat server. P= lugin should deal with it. {code} [INFO] Deploying war to http://192.168.191.83/server-app Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserv= er-app Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserve= r-app (13788 KB at 468.1 KB/sec)=20 28.8.2013 8:44:35 org.apache.http.client.protocol.ResponseProcessCookies pr= ocessCookies WARNING: Cookie rejected: "[version: 0][name: JSESSIONID][value: 7ACBBD27F9= 7F86C3477C988006B02073][domain: 192.168.191.83][path: /manager][expiry: nul= l]". Illegal path attribute "/manager". Path of origin: "/server-app//deplo= y" Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserve= r-app Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserver= -app (13788 KB at 332.8 KB/sec) {code} After second automatic upload it's deployed successfully. The htaccess file content: {code} RewriteEngine On RewriteRule ^manager-server-app/(.*)$ ajp://localhost:8010/manager/$1 [P,NE= ] RewriteRule ^manager-server-app$ /manager/ [L,R] {code} was: When I run maven task for (re)deploy, the file is always being uploaded twi= ce. I think the problem is related to manager path.=20 In front of Tomcat there is a Apache server, which redirects requests from = /manager-server-app to /manager on Tomcat server. Plugin should deal with i= t. {code} [INFO] Deploying war to http://192.168.191.83/server-app Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserv= er-app Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserve= r-app (13788 KB at 468.1 KB/sec)=20 28.8.2013 8:44:35 org.apache.http.client.protocol.ResponseProcessCookies pr= ocessCookies WARNING: Cookie rejected: "[version: 0][name: JSESSIONID][value: 7ACBBD27F9= 7F86C3477C988006B02073][domain: 192.168.191.83][path: /manager][expiry: nul= l]". Illegal path attribute "/manager". Path of origin: "/server-app//deplo= y" Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserve= r-app Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserver= -app (13788 KB at 332.8 KB/sec) {code} After second automatic upload it's deployed successfully. =20 > War file is being uploaded twice - Cookie rejected > --------------------------------------------------- > > Key: MTOMCAT-235 > URL: https://issues.apache.org/jira/browse/MTOMCAT-235 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6 > Affects Versions: 2.1 > Environment: Linux > Reporter: George Smith > Assignee: Olivier Lamy (*$^=C2=A8%`=C2=A3) > > When I run maven task for (re)deploy, the file is always being uploaded t= wice. I think the problem is related to manager path.=20 > In front of Tomcat there is a Apache server (from security reasons), whic= h redirects requests from /manager-server-app to /manager on Tomcat server.= Plugin should deal with it. > {code} > [INFO] Deploying war to http://192.168.191.83/server-app > Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fse= rver-app > Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fser= ver-app (13788 KB at 468.1 KB/sec)=20 > 28.8.2013 8:44:35 org.apache.http.client.protocol.ResponseProcessCookies = processCookies > WARNING: Cookie rejected: "[version: 0][name: JSESSIONID][value: 7ACBBD27= F97F86C3477C988006B02073][domain: 192.168.191.83][path: /manager][expiry: n= ull]". Illegal path attribute "/manager". Path of origin: "/server-app//dep= loy" > Uploading: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fser= ver-app > Uploaded: http://192.168.191.83/manager-server-app//deploy?path=3D%2Fserv= er-app (13788 KB at 332.8 KB/sec) > {code} > After second automatic upload it's deployed successfully. > The htaccess file content: > {code} > RewriteEngine On > RewriteRule ^manager-server-app/(.*)$ ajp://localhost:8010/manager/$1 [P,= NE] > RewriteRule ^manager-server-app$ /manager/ [L,R] > {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