我试图访问由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