我試圖訪問由NetBeans 7.1.2安裝的Tomcat實例的/manager
頁面。NetBeans 7.1.2 tomcat/manager訪問配置問題
我用鼠標右鍵單擊屬性對應的樹節點,我得到這個:
這似乎暗示我可以用這些憑據,但他們沒有工作。
當我看看tomcat-users.xml
,該用戶似乎並不存在:
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>
我應該怎麼創建?如果是,我已經嘗試過,但找不到合適的角色。什麼是適當的線添加? (是的,我已重新啓動Tomcat)的
所有似乎設置正確。我終於手動安裝Tomcat並將其添加到NetBeans中。 – JVerstry 2012-07-18 06:19:34