Exception looking up UserDatabase under key UserDatabase UPTomcatApacheXML
程序员文章站
2022-07-09 15:53:01
...
错误提示:1)LifecycleException: No UserDatabase component found under key UserDatabase
2) Exception looking up UserDatabase under key UserDatabase
解决方案:
1) 修改tomcat下cofig文件夹的权限,去除只读属性。
2)server.xml中缺少或者关键代码被删除,
<GlobalNamingResources>
<Resource 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" />
</GlobalNamingResources>
我是配置数据源的时候,直接将这段代码覆盖导致上述错误!! 1)的解决方案没试出效果!
上一篇: AI怎么画卡通鸟儿矢量图插画?