You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Olivier Lamy (*$^¨%`£ JIRA)" <ji...@apache.org> on 2013/11/01 11:58:20 UTC

[jira] [Commented] (MTOMCAT-235) War file is being uploaded twice - Cookie rejected

    [ https://issues.apache.org/jira/browse/MTOMCAT-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811171#comment-13811171 ] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-235:
------------------------------------------------

Because of 
RewriteRule ^manager-server-app/(.*)$ ajp://localhost:8010/manager/$1 [P,NE] 
RewriteRule ^manager-server-app$ /manager/ [L,R] 

You must use
ProxyPassReverseCookiePath /manager/ /manager-server-app

See documentation for ProxyPassReverseCookiePath


> 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 (*$^¨%`£)
>              Labels: moreinfo
>             Fix For: moreinfo
>
>
> When I run maven task for (re)deploy, the file is always being uploaded twice. I think the problem is  related to manager path. 
> In front of Tomcat there is a Apache server (from security reasons), which 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=%2Fserver-app
>  Uploaded: http://192.168.191.83/manager-server-app//deploy?path=%2Fserver-app (13788 KB at 468.1 KB/sec) 
> 28.8.2013 8:44:35 org.apache.http.client.protocol.ResponseProcessCookies processCookies
> WARNING: Cookie rejected: "[version: 0][name: JSESSIONID][value: 7ACBBD27F97F86C3477C988006B02073][domain: 192.168.191.83][path: /manager][expiry: null]". Illegal path attribute "/manager". Path of origin: "/server-app//deploy"
> Uploading: http://192.168.191.83/manager-server-app//deploy?path=%2Fserver-app
> Uploaded: http://192.168.191.83/manager-server-app//deploy?path=%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}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org