请求的资源[/jenkins]不可用

问题描述 投票:0回答:2

我安装了 JDK 11.0,然后安装了 Tomcat 10.0,并设置了所有环境变量并放置了 jenkins.war 文件。现在,localhost:8080 运行正常,但 localhost:8080/jenkins 无法工作。

它给出错误:

HTTP 状态 404 – 未找到 类型状态报告

消息请求的资源[/jenkins]不可用

说明源服务器未找到目标资源的当前表示或不愿意透露该表示存在。

阿帕奇汤姆猫/10.0.21

有人可以帮忙吗?

jenkins tomcat jenkins-plugins devops tomcat10
2个回答
0
投票
root@jenkins ~]# vim /usr/local/tomcat/conf/context.xml

添加这个

<Context>
.....
    <Loader jakartaConverter="TOMCAT" />
</Context>

然后在tomcat/bin中

./shutdown.sh
./startup.sh 

0
投票

root@ubuntu:/opt/tomcat/apache-tomcat-10.1.16/conf/context.xml

enter image description here

<!-- Default set of monitored resources. If one of these changes, the    -->
<!-- web application will be reloaded.                                   -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Loader jakartaConverter="TOMCAT" />
<!-- Uncomment this to enable session persistence across Tomcat restarts -->
<!--
<Manager pathname="SESSIONS.ser" />
-->
© www.soinside.com 2019 - 2024. All rights reserved.