遇到tomcat启动报错No UserDatabase component found under key UserDatabase解决方案

下面是报错的信息

根据原因可以知道是userDatebase没找到。

解决方法:找到tomcat安装目录,我的是F:\apache-tomcat-7.0.70\conf,找到server.xml,看看里面是不是少了

将这个配置加进去就可以了<Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>

以上仅仅是本人遇到这个问题的解决方案,仅供参考!

 

posted @ 2017-12-27 14:11  回眸一下  阅读(4371)  评论(0编辑  收藏  举报