[ 
https://issues.apache.org/jira/browse/MTOMCAT-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

George Smith updated MTOMCAT-235:
---------------------------------

    Description: 
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}


  was:
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, 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.


    
> 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 (*$^¨%`£)
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to