Ant: “IOException: Error writing request body to server” on deployment to tomcat

后端 未结 2 702
小蘑菇
小蘑菇 2021-01-19 23:52

I am new to StackExchange so please bear with my eventual mistakes...

I have been searching for answers but none seem to apply to my situation being that that build

相关标签:
2条回答
  • 2021-01-20 00:14

    i think i am slow, i have faced same problem

    in tomcatdeploy task instead of war make it localWar

    0 讨论(0)
  • 2021-01-20 00:25

    You will get this error if you already have an instance deployed to the Tomcat server. You can set update="true" in the tomcatdeploy:

    <tomcatdeploy
            url="http://32.0.26.146:8080/manager/text"
            username="<veryHardToGuessUsername>"
            password="<veryHardToGuessPassword>"
            path="/avlsweb"
            war="/mnt/s/Web/Avlsweb/BambooBuilds/TEST/${nt-server.dir.test}_Tc${version}/avlsweb##${version}.war"
            version="${version}"
            update="true"
            />
    

    Another option is to explicitly undeploy and then redeploy, or use the reload tag instead of the deploy tag.

    0 讨论(0)
提交回复
热议问题