You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/10/09 07:33:49 UTC

[Bug 62809] New: cannot remote deploy with Ant DeployTask

https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

            Bug ID: 62809
           Summary: cannot remote deploy with Ant DeployTask
           Product: Tomcat 9
           Version: 9.0.12
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Manager
          Assignee: dev@tomcat.apache.org
          Reporter: megascus@gmail.com
  Target Milestone: -----

I try to remote deploy with Ant DeployTask, but it not works.


source
----
DeployTask deployer = new DeployTask();
deployer.setUpdate(true);
deployer.setWar("C:\\tmp\\WebApplication1.war"); // if change to setLocalWar,
it works.
deployer.setUsername("tomcat");
deployer.setPassword("tomcat");
deployer.setUrl("http://localhost:8080/manager/text");
deployer.setPath("/WebApplication1");

deployer.execute();





stacktrace
----
Exception in thread "main" java.net.HttpRetryException: cannot retry due to
server authentication, in streaming mode
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:270)
        at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:178)
        at tomcattest.TomcatTest.main(TomcatTest.java:28)
Caused by: java.net.HttpRetryException: cannot retry due to server
authentication, in streaming mode
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1692)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:231)
        ... 2 more

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62809] cannot remote deploy with Ant DeployTask

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
As a work-around, use the following code before the DeployTask. It causes the
credentials to be cached so the DeployTask is performed with the credentials
present which avoids this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62809] cannot remote deploy with Ant DeployTask

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This appears to be a consequence of the way DIGEST support was implemented for
bug 45832. I'm currently looking at options for fixing this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62809] cannot remote deploy with Ant DeployTask

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

--- Comment #4 from Satoshi Kubo <me...@gmail.com> ---
Thanks.
Your information helped me a lot.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62809] cannot remote deploy with Ant DeployTask

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Sorry, missed the code:

ListTask list = new ListTask();
list.setUsername("tomcat");
list.setPassword("tomcat");
list.setUrl("http://localhost:8080/manager/text");
list.execute();

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62809] cannot remote deploy with Ant DeployTask

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62809

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.13 onwards
- 8.5.x for 8.5.35 onwards
- 7.0.x for 7.0.92 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org