已将tomcat-users.xml修改为<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="fyswords" password="123" roles="tomcat,admin,manager"/>
</tomcat-users>
用fyswords,123还是无法登陆7.0.21非安装版tomcat,求解
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="fyswords" password="123" roles="tomcat,admin,manager"/>
</tomcat-users>
用fyswords,123还是无法登陆7.0.21非安装版tomcat,求解
解决方案 »
- amcharts JS版,折线图如何添加鼠标单击事件,就是在线上点击一下,弹出改点对应的标题或者值
- hibernate怎么样使用sql查询
- JSP页面中插入FLASH 报错 Plug-in Not Loaded
- 请教各位, 我下步应该怎么办?
- 如何讓jsp上的播放器播放下拉菜單中的選項啊?
- 如何使用POI提取WORD文档中的表格?在线等!请高手帮忙了
- 有没有大牛对MicroStrategy 8很熟悉的?
- 求助:如何实现这样的功能?
- 我的数据库里有很多记录,我想一次读出200条,然后分页,每页40条!如果用户读到第5页,我在从数据库里读出200条。用jsp应该怎么实现啊?
- 如何用jsp往一个文本文件里写文字?
- java 调用 oracle 11g 存储过程出错
- jsp 日历控件 日程安排 sql server数据库
我一直只给manager的权限
例如<user username="fyswords" password="123" roles="manager"/>这个是可以的,至于tomcat,admin的权限没有了解过
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<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"/>
-->
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
</tomcat-users>
主要是roles里的值不是以前的manager了,现在改成manager-gui就行了