TOMCAT "Access to the requested resource has been denied" solution

2010-11-18  来源:本站原创  分类:Java  人气:203 

TOMCAT "Access to the requested resource has been denied" solution

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.

Reason: missing configuration parameter; open the main directory \ conf \ tomcat-users.xml file, which because of the in with a user, and add roles = "manager" Here is an example of adding admin, and root, two users, two users log on with no mistake

<? Xml version = '1 .0 'encoding =' utf-8 '?>

<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="111111" roles="admin,manager"/>
<user username="root" password="root" roles="admin,manager"/>
</ Tomcat-users>

Of course, if you do not need to download the admin pack then the default non-admin package of

My test environment is tomcat 5.5.17

相关文章
  • TOMCAT "Access to the requested resource has been denied" solution 2010-11-18

    TOMCAT "Access to the requested resource has been denied" solution type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has be

  • HTTP Status 403 - Access to the requested resource has been denied 2009-06-02

    HTTP Status 403 - Access to the requested resource has been denied Cause of the problem: D: \ Tomcat5.0 \ conf directory tomcat-users.xml file reads as follows: <? xml version = '1 .0 'encoding =' utf-8 '?> <tomcat-users> <role rolename=&qu

  • Tomcat access log analysis tool 2010-03-29

    http://www.blogjava.net/xmatthew/archive/2008/04/14/192450.html Normal web server logs of two parts: 1: is a running log, which runs some of the major record information, especially some abnormal error log information 2: is the access log information

  • HTTP Status 404 (The requested resource is not available) 2010-12-11

    HTTP Status 404 - / / type Status report message / / description The requested resource (/ /) is not available. Apache Tomcat/6.0.18 In the Baidu search, and got tips: Reasons: servlet is not configured correctly, see web.xml sure correct and right p

  • tomcat access log format configuration 2010-09-19

    <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="/xxx" docBase="/data/www/xxx&q

  • Tomcat access log记录到mongo的插件 Tomcat Mongo Access Log Valve 2014-07-18

    Tomcat Mongo Access Log Valve 网站 : https://github.com/chanjarster/tomcat-mongo-access-log Tomcat Mongo Access Log 是一个将 Tomcat access log 记录到 MongoDB 的插件. 特性: 不影响业务代码 使用简单 使用方式和Tomcat自带的AccessLogValve基本一致,只需要简单配置就能够实现将日志存入到mongodb. 使用前先mvn clean packa

  • IIS访问ASP页面时报错The requested resource is in use.的解决办法 2014-08-01

    重启服务器IIS服务后发现所有ASP页面显示http500错误,大汗, IIS中,当将应用程序进程保护设为低时,网站asp程序可以正常运行,但当将应用程序进程保护设为中和高时,asp程序均显示http500错误. 在网上寻找解决方案,说是IWAM用户密码不同步的原因造成,但查看日志文件,发现日志里记录的描述与IWAM用户密码不同步的不一样, 具体日志如下: 事件类型: 错误 事件来源: COM+ 事件种类: SVC 事件 ID: 4194 日期: 2005-10-13 事件: 13:02:12

  • Tomcat 5 / 6 GBK encoding problems under the perfect solution Chinese form of filters 2010-03-21

    Tomcat 5 / 6 GBK encoding problems under the perfect solution Chinese form of filters Tomcat 5 common form after the submission of garbled code solution a lot, have to change Tomcat Connector properties, there are additional filters. But the Tomcat t

  • ECShop 2.7.2 mail server settings and "Access is denied" solution 2010-06-10

    ECShop 2.7.2 mail server settings and "Access is denied" solution If you use your own domain name configured mail, please sign out the following line. Can not send mail to solve the problem. $this->host = "ssl://" . $this->host;

  • Access web.inf file ..... on a static html file in the tomcat access principle analysis ..... 2010-07-28

    Because web-inf, the application server it refers to the prohibition to visit catalog, which is directly in the browser can not access to the. But allowing the servlet to access, such as the web-inf under a.jsp you can use request.getRequestDispatche

  • Tomcat access log pattern 2010-05-10

    You can use apache log format: common: '% h% l% u% t "% r"% s% b' combined: '% h% l% u% t "% r"% s% b "% (Referer) i" "% (User-agent) i"' Can also customize their own: See http://tomcat.apache.org/tomcat-5.5-doc/con

  • tomcat access log configuration 2010-05-13

    To monitor who is using your server, set up HTTP access logging in Tomcat. Every request that comes to Tomcat gets a Setting up Logging To setup access logging, edit the Tomcat server configuration file, $ (tomcat_home) / conf / server.xml and uncomm

  • The requested resource (There is no Action mapped for namespace / and action nam 2010-06-10

    On this issue, in fact not really a problem You can re-enter the browser can access the page, do not refresh, or just write the catalog and did not write the file name Or you can restart tomcat

  • eclipse configuration tomcat, access http://localhost:8080 404 errors 2010-11-19

    Problem: to start tomcat through eclipse will encounter "Access http://localhost:8080 404 error" this problem, you need to set up a series of eclipse in Caixing. Solution: Open the eclipse of the server view, double-click that you configure tomc

  • About JavaServlet's The requested resource (****) is not avail 2010-10-31

    Trapped by this problem today, a day ... finally solved ... Thank you very much son across the seven quarters and regression ... O (∩ _ ∩) O ~ Test1 in the project under the WebRoot web.xml WEB-INF in the contents as follows: <? Xml version = "1.0

  • HTTP Status 404 (The requested resource is not available) of several solutions 2011-07-31

    Reason: servlet is not configured correctly, check to confirm the correct web.xml, and their request path is correct In IE prompt "404" error in the following three conditions 1. Not to deploy Web applications 2. URL input error troubleshooting

  • Struct in the application of the time, button's action show The requested resource is not availab 2011-05-26

    A simple example of doing, while she herself wrote a jsp page, roughly following: <% @ Page language = "java" pageEncoding = "GBK"%> <% @ Page import = "java.sql .*"%> <% @ Page import = "apabi.edoc.util.d

  • access denied solution 2008-11-26

    I was using rmi client access rmi server side brms services, resulting in access denied (java.lang.RuntimePermission modifyThreadGroup) anomaly due to the lack of configuration file permissions jdk this, you can add permissions to configure the path:

  • PB to connect Access database, change the default path to the solution error 2010-03-17

    PB Internet connection Access Database in many not repeat A friend had encountered a problem, call getOpenFileName () and getSaveFileName () after Question 1: The database will be abnormal, suggesting that the database path is incorrect. Or Question

  • MyEclipse start Tomcat has been reported Multiple operations have reported errors. Solution 2010-07-26

    After the start Tomcat, MyEclipse has error, unable to continue working. Solution as follows: MyEclipse pop-up error: Multiple operations have reported errors. 1. Close myeclipse 2. Myeclipse find the installation path: for example: D: \ Program File