tomcat启动时出现如下错误,信息如下,请问是什么原因

2024-11-27 05:32:12
推荐回答(3个)
回答1:

(1)server.xml文件中少了默认的:

type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pserver.xml文件中少了默认的:

type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />

athname="conf/tomcat-users.xml" />

(2)将conf文件夹的只读属性去掉 或者右键以管理员身份运行就不会出错了

回答2:

这个可能和你数据库有原因,建议你重新配置tomcat,然后在启动一下试试看!!!

回答3:

(1)server.xml文件中少了默认的:
name="UserDatabase"
auth="Container"
type="org.apache.catalina.UserDatabase"
description="User
database
that
can
be
updated
and
saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pserver.xml文件中少了默认的:
name="UserDatabase"
auth="Container"
type="org.apache.catalina.UserDatabase"
description="User
database
that
can
be
updated
and
saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"
/>
athname="conf/tomcat-users.xml"
/>
(2)将conf文件夹的只读属性去掉
或者右键以管理员身份运行就不会出错了