Jenkins 将 war 文件部署到 Tomcat 8 - 网页显示错误

Jenkins deploy war file to Tomcat 8 - webpage show error

我正在尝试将 sample.war 文件部署到 Tomcat 8 并成功部署文件。但是,当我尝试启动 http://localhost:8080/sample/ 时,它在网页上显示以下错误:

部署后以下是成功日志:

Started by user admin
Building on master in workspace C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest
[AutomatedDeploymentTest] $ cmd /c call C:\Users\name\AppData\Local\Temp\hudson6142418824859478059.bat

C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest>exit 0 
[AutomatedDeploymentTest] $ sh -xe C:\Users\name\AppData\Local\Temp\hudson3975448203686724676.sh
+ dir
sample.war
+ date
Tue, Jun 20, 2017  8:45:09 AM
Deploying C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest\sample.war to container Tomcat 7.x Remote
  Redeploying [C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest\sample.war]
  Undeploying [C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest\sample.war]
  Deploying [C:\Users\name\.jenkins\workspace\AutomatedDeploymentTest\sample.war]
Finished: SUCCESS

自从 war 文件部署成功后,我不确定为什么网页不显示应用程序和 运行。

我刚刚启动 url 作为 http://localhost:8080/sample.war 代替 http://localhost:8080/sample/,它对我有用。我不确定为什么我需要输入扩展名为 .war 的 sample.war 但它最终起作用了。