由于tomcat-users.xml配置错误,Tomcat无法启动

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

昨天tomcat在我的机器上的eclipse上运行正常,今天tomcat无法启动,即使我没有改变任何东西

我试图在 tomcat 服务器上运行我的 JEE 项目,但它运行失败,然后我尝试单独运行 tomcat 服务器,之后我关闭了该项目,但它仍然没有运行,当我想检查问题时设置文件 tomcat-users.xml 中有错误 错误是cvc-elt.1.a:找不到元素'tomcat-users'的声明。 总体配置 设置文件中有什么内容

java eclipse tomcat tomcat9
1个回答
0
投票

看看这里:https://www.youtube.com/watch?v=iSbmB7ZJ5zw

基本上,我必须将 URI 从 http 更改为 https。

代替: tomcat-users版本=“1.0”xmlns=“http://tomcat.apache.org/xml”xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”xsi:schemaLocation=“http ://tomcat.apache.org tomcat-users.xsd"

这个有效: tomcat-users版本=“1.0”xmlns=“https://tomcat.apache.org/xml”xmlns:xsi=“https://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation="https://tomcat.apache.org tomcat-users.xsd"

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.