8
我正在嘗試訪問管理器應用程序,但無法登錄。我得到登錄屏幕,但是當我輸入用戶名和密碼時,登錄屏幕不斷回來。有什麼建議麼?Tomcat 7.0.x管理器登錄問題
這是我做了什麼: 經理的應用程序部署在$ CATALINA_BASE/webapps /目錄經理
的的server.xml文件的部分:
<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="$CATALINA_BASE/conf/tomcat-users.xml" />
...
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
Tomcat的用戶.XML:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<user username="tomcat-user" password="tomcat" roles="manager-gui,manager-script"/>
<user username="tocmat2" password="tomcat" roles="manager-script"/>
</tomcat-users>
在$ CATALINA_BASE/conf目錄/卡塔利娜/ localhos T/manager.xml:
<Context privileged="true"
docBase="path/to/webapps/manager">
</Context>
palacsint嗨,這是解決辦法。非常感謝! – JohanKees