gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:20:22 25 4
gpt4 key购买 nike

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

部署后成功日志如下:

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 insted http://localhost:8080/sample/ 启动,它对我有用.我不确定为什么我需要输入扩展名为 .war 的 sample.war,但它最终起作用了。

关于tomcat - Jenkins 将 war 文件部署到 Tomcat 8 - 网页显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44653548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com