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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]