Ant re-deploy on Tomcat 8.5 failed - java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode -
we have standard (undeploy => deploy) ant script in eclipse on tomcat 8.5, works fine:
<target name="undeploy" description="undeploy tomcat"> <undeploy failonerror="no" url="${tomcat-manager-url}" username="${tomcat-manager-username}" password="${tomcat-manager-password}" path="/${project-name}" /> </target>
and
<target name="deploy" description="deploy tomcat"> <echo>deploying client</echo> <deploy url="${tomcat-manager-url}" username="${tomcat-manager-username}" password="${tomcat-manager-password}" path="/${project-name}" war="file:${build-directory}/${war-file-name}" /> </target>
this works fine, deploy successful:
undeploy: [undeploy] ok - undeployed application @ context path /project_name deploy: [echo] deploying client [deploy] ok - deployed application @ context path /project_name build-and-undeploy-deploy: build successful
but don't want use stand-alone undeploy command before deploy app (because $catalina_base/conf/[enginename]/[hostname]/project_name.xml deleted), woudl re-deploy app on target deploy parameter update="true" like in documentation.
this script working ok in previous version eclipse on tomcat 7, not on tomcat 8.5. strange "authentication" error: java.net.httpretryexception: cannot retry due server authentication, in streaming mode:
<target name="deploy" description="deploy tomcat" <echo>deploying client</echo> <deploy url="${tomcat-manager-url}" username="${tomcat-manager-username}" password="${tomcat-manager-password}" path="/${project-name}" war="file:${build-directory}/${war-file-name}" update="true" /> </target>
result:
build failed ..\build.xml:104: java.net.httpretryexception: cannot retry due server authentication, in streaming mode total time: 922 milliseconds
ant in eclipse oxygen version 1.10.1; tested on tomcat 8.5.11/8.5.20; java version 1.8.0_144.
wiki
Comments
Post a Comment