HTTP Status 403 - Access to the requested resource has been denied
问题原因:
D:\Tomcat5.0\conf 目录下的
tomcat-users.xml 文件内容如下:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>
问题修改:将tomcat-users.xml 文件内容改为
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>
重新启动Tomcat ,在登录时使用 用户名admin 密码 admin 登录即可。
转载于:http://www.blogjava.net/sunwch/archive/2008/06/30/211604.html
分享到:
相关推荐
Amazon 卖家接口Demo,官方Demo一堆错误,千万不要被误导。 解决: 1、Access to requested resource is denied 2、The security token included in the request is invalid 有疑问可提问
在排除没有登录和网络的原因:我还是报的如下错误 原因镜像的名字没有按照...The push refers to repository [docker.io/langxuhao/my_redis] cd1b418d5a74: Pushed ddf2402ca3ea: Pushed 00352274272b: Pushed a0e3c
当一个网页尝试从不同的源(协议、域名或端口)请求资源时,如果目标服务器没有允许这个源的权限,浏览器会阻止该请求,从而出现"No 'Access-Control-Allow-Origin' header is present on the requested resource"的...
HTTP Status 404 解决方案总结 HTTP Status 404 是一个常见的错误代码,它表示请求的资源不可用。在本文中,我们将讨论七种常见的解决方案,以帮助开发者快速解决该问题。 1. 未部署 Web 应用 如果您遇到了 HTTP ...
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 这就是跨域问题。解决方案有不少,比较好的是服务器端配置CORS,但要求服务器端...
### Apache启动报错:“the requested operation has failed”的解决办法 #### 背景与问题描述 在使用Apache Web服务器的过程中,可能会遇到一个常见的错误提示:“the requested operation has failed”。这个错误...
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET,POST'; 使用以下配置,生效。 if ($request_method = '...
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch ...
### IIS访问ASP页面时报错“The requested resource is in use”的解决办法 在处理IIS(Internet Information Services)服务器上的ASP(Active Server Pages)页面时,可能会遇到一个常见的错误:“The requested ...
### Apache无法启动解决_the_requested_operation_has_failed #### 知识点概述 本文旨在解决Apache服务器在启动过程中出现的“the requested operation has failed”错误。这一问题可能是由多种因素导致的,包括但...
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked. doFilter(ServletRequest, ...
k8s的16版本安装的时候,dashboard 出现k8s dashboard the server could not find the requested resource的问题。重新换一个2.0版本的dashboard即可。
description The requested resource (Servlet action is not available) is not available. -------------------------------------------------------------------------------- Apache Tomcat/5.5.25的问题
错误提示如下图: 出现这种情况的原因通常是因为先安装了Framework,后安装的IIS; 运行cmd,输入: 代码如下:C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet...Win7中IIS出现“HTTP 错误 404.17 – Not Foun
- **403.18 - Cannot execute requested URL in the current application pool**:无法在当前应用程序池中执行请求的 URL。 - **403.19 - Cannot execute CGI applications for the client in this application pool...
### Apache提示 "the requested operation has failed" 无法启动的解决方法 #### 一、问题概述 在使用Apache服务器的过程中,可能会遇到服务器无法启动的情况,并且出现 "the requested operation has failed" 的...
标题 "解决方案 ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’" 提到的是一个在Web开发中常见的跨域问题。`Access-Control-Allow-Origin` 是一个用于控制资源跨域访问的...
ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work if it is byte-packed. Example Code and Data Size: These are the sizes for the OS- independent acpica.lib produced by ...