Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-235

War file is being uploaded twice - Cookie rejected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • moreinfo
    • tomcat6
    • Linux

    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.

       [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)
      
      

      After second automatic upload it's deployed successfully.

      The htaccess file content:

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

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              cabot George Smith
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: