0
votes

I am trying to deploy my java application to tomcat server using Azure DevOps Release pipeline. I have filled the path for war file, server URL information, username and password in the tomcat server tab like below :

Deploy application to a tomcat server

But deployment is getting failed and I am getting below error :

tomcat error

Am I using the path or any other information wrong? Can anybody please help me with this, thank you.

1
You seem to have white spaces in the path. Don't do that, or at least quote them.Wolfgang Kuehn

1 Answers

0
votes

It looks like the path of the WAR File you specified is incorrect, which caused the file cannot be found.

I reproduced the exactly same error, if i specified an incorrect war file path. When i entered the right war file path. The error was gone. See below:

The correct file path should be $(System.DefaultWorkingDirectory)/_Tomcat/drop/Build CS&S2/SizingAndSelection2 WAR/target/sample.war:

enter image description here

You can go the release Logs to check the log of the Download artifacts to see where the war file has been downloaded.

enter image description here

Or you can click the 3dots of the War file field to locate the war file in the artifact. See below

enter image description here