- 浏览: 403203 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (176)
- J2EE (24)
- Oracle (16)
- WebService (2)
- Other (11)
- 编译可添加参数 -keep-generated-actionscript=true (1)
- Log4 日志级别 (1)
- 汉字转拼音 (1)
- 定制文件提取和下载(提供多选) (1)
- soa suit update ip (1)
- IBM X3850 X5 系统安装 (1)
- XEN 虚拟化技术 (3)
- Windows 2003 (1)
- suse (1)
- solaris (1)
- weblogic (3)
- linux (2)
- solairs (1)
- os (1)
- oracle linux suse (1)
- Oracle Inventory Directory (1)
- 开启JBoss7的access_log功能 (0)
- jboss (2)
- 2013 (0)
- 2013-oracle-bpm (2)
- Oracle ERP (2)
- javascript (1)
- start shell command (1)
- PowerDesigner反向工程 mysql (1)
- http://it-ebooks.info/ (1)
- 快速上手RaphaelJS-Instant RaphaelJS Starter翻译(一) (1)
- web (1)
- 网站测速实用工具 (1)
- http://www.realvnc.com/download/vnc/5.1.1/ (1)
- 一次关于Waiting for table metadata lock的处理 (1)
- 64位系统下报libstdc++.so.6 GLIBCXX 错误 (1)
- http://baike.baidu.com/link?url=xB3rEIodVQXE7f4PACW9gi4rQeXvzwDirx8c1caiVny8VxqZHggyD3SLmJXV9_OH0jBi9xbY0toxg8noHn1O7a (1)
- MyEclipse (1)
- 探索Eclipse的OSGi控制台 (1)
- http file server (1)
- ZooKeeper-3.3.4集群安装配置 (1)
- 使用Zookeeper实现分布式共享锁 (1)
- http://blog.sina.com.cn/s/blog_7cd4dd3e0101e1rd.html (1)
- http://blog.csdn.net/chenyi8888/article/details/6626302 (1)
- http://www.cnblogs.com/qinwanlin/archive/2012/12/03/2797339.html (1)
- Apache Felix环境配备 (1)
- 安装Subversion1.82(SVN)插件 (1)
- Maven 打包war包 (1)
- squid (1)
- Nginx 做反向代理,后端是 tomcat,chrome 浏览器访问项目时加载大文件失败 ERR_CONTENT_LENGTH_MISMATCH: (1)
- master and slave have equal MySQL server UUIDs 解决方法 (1)
- 分享6个目前国内优秀的Java开源项目----后台管理框架,值的收藏 (1)
最新评论
-
Aceslup:
嗯,已经知道解决方法了。需要JDK环境。
VisualVM指定JDK环境启动 -
静夜独窗:
很好,收藏,有时间好好看看
JVM那些事(heap&stack) -
LoveJavaMM:
你好,看了你的文章有点疑问
第一:
vi /etc/pam. ...
suse 11 telnet 和 ftp安装开通端口 -
方块石:
老兄,解压的要输入内容,是啥子
ant脚本部署war包全过程~~ -
hy158753228:
LZ有遇到过这个问题么:
我安你的说法安装了插件,打开一个.c ...
MyEclipse 8.6反编译插件安装
刚刚解压版的apache-tomcat-5.5.23,启动setup.bat后,通过浏览器访问:http://127.0.0.1:8080/admin
在登录界面输入用户名 both 和密码 tomcat 后出现下面的错误提示:
HTTP Status 403 - Access to the requested resource has been denied
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.12
。
问题原因:
D:\apache-tomcat-5.5.23\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 登录即可。
在登录界面输入用户名 both 和密码 tomcat 后出现下面的错误提示:
HTTP Status 403 - Access to the requested resource has been denied
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Apache Tomcat/5.0.12
。
问题原因:
D:\apache-tomcat-5.5.23\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 登录即可。
发表评论
-
java jdk 下载地址
2012-01-17 14:14 1052jre http://java.com/zh_CN/down ... -
myeclipse插件汇总积累
2011-06-17 21:53 11111. tomcat插件: http://www.eclip ... -
[转]css3
2011-05-03 14:53 1311作为一个Web开发者,保持对未来Web标准的关注、学习和了解是 ... -
IE&FF兼容性
2011-04-04 17:33 12481. document.form.item 问题 (1)现 ... -
MyEclipse 8.6反编译插件安装
2011-01-08 16:03 9384第一步: 下载j ... -
QC邮件转发工具Mail Direct安装配置手册
2010-11-01 13:57 5028转 + > http://blog.163.com/k ... -
solaris机器操作....
2010-06-30 21:29 14011. 查看用户所在的组cat ... -
java反编译工具~
2010-06-11 20:10 931前几天从同事那里弄来一个很不错的java反编译工具。感觉有起来 ... -
收藏的URL
2010-02-25 17:19 10141. eclipse中反编译插件jadClipse http ... -
使用 Telnet 端口 25 测试 SMTP 通信
2010-02-24 17:10 2980From: http://www.cnitblog.com/w ... -
操作log4jAPI
2009-11-12 10:58 1213import java.io.ByteArrayOutputS ... -
Eclipse 插件
2009-10-15 10:09 13061. commons4e 插件. 这个Eclipse插件方便 ... -
最近公司内网打不开myeclipse官网
2009-06-25 09:17 2195最近想上官网下载些东西, 一直都打不开。后来使用代理 ,终 ... -
ant脚本部署war包全过程~~
2009-06-17 17:38 3845最近写了一个部署打包的ant,功能真强大,自动更新svn源码, ... -
自动生成toString方法.
2008-12-07 16:23 2101package com.zte; import java.la ... -
sqlplus如何执行command脚本。
2008-10-26 11:27 1905打开sqlplus,file->open->com ... -
使用ant 自定义复制指定文件
2008-09-08 15:19 3684//CopyFile.java类文件 import ... -
Hibernate 的 batch_size 与事务
2008-09-04 14:56 1531batch_size 即同时提交数据的数量,原本与事务并没有什 ... -
关于FastHashMap...
2008-09-02 10:51 2650今天在开发过程中碰到了一处使用了beanutil中的fasth ... -
连接字符串中碰到的SelectMethod=cursor
2008-09-01 14:45 2140今天在数据库连接字符串中看到了selectMethod=cur ...
相关推荐
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, ...
Added #pragma pack(8/4) to acobject.h to ensure that the structures in this header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work ...
They are also the developers who elect the core team, and they have access to closed discussions. The project can be grouped into four distinct separate parts, and most developers will focus their ...
Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:9000’ is therefore not ...
In earlier revisions, the error status light was cleared after a VsSetWavelength() call failed, so the user did not see the light turn red to alert that an error had occurred. This has been fixed in ...
* This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and ...
header('Access-Control-Allow-Headers: X-Requested-With, Content-Type'); ``` 3. **Access-Control-Allow-Credentials**:如果需要在跨域请求中携带Cookie,需要设置`Access-Control-Allow-Credentials`为`...
add_header Access-Control-Allow-Headers 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; if ($request_method = 'OPTIONS') { return 204; } ``` ...
response.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); response.setHeader("Access-Control-Expose-Headers", "Location"); chain.doFilter(req, res); } ...
"method.response.header.Access-Control-Allow-Headers" = "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with'" } } ``` 这段代码首先创建了一个API Gateway REST API和一个资源,然后定义了...
当尝试跨域访问时,通常会遇到以下错误消息:“No 'Access-Control-Allow-Origin' header is present on the requested resource”。 **2. 同源示例** 要确定两个URL是否同源,需要检查它们的三个关键组成部分:...
response.setHeader("Access-Control-Allow-Headers", "Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Content-Type"); response.setHeader("Access-Control-...
为了解决跨域访问问题,W3C工作组发布了一个名为**Cross-Origin Resource Sharing (CORS)**的推荐标准。CORS提供了更安全、更灵活的方式来处理跨域数据交换,其核心机制是通过HTTP头部信息来控制哪些资源可以被其他...
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 跨域问题 浏览器对于ajax请求的一种安全限制:一个页面发起的ajax请求,只能是于当前页同域名的路径,这能有效的...
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); ``` 最后,创建图片缩览图通常是为了优化显示和节省服务器存储空间。在PHP中,我们可以...
response.setHeader("Access-Control-Allow-Headers", "x-requested-with"); if ("OPTIONS".equalsIgnoreCase(request.getMethod())) { response.setStatus(HttpServletResponse.SC_OK); } else { chain....
Response to STATUS ENQUIRY - **定义**:对STATUS ENQUIRY的响应。 - **应用场景**:当网络收到STATUS ENQUIRY消息后返回的状态信息。 - **技术背景**:这用于提供有关网络状态的信息。 #### 22. Normal, ...
response.setHeader("Access-Control-Allow-Headers", "X-Requested-With, Content-Type, Accept, Origin, Authorization"); // 设置允许的自定义头部 response.setHeader("Access-Control-Allow-Credentials", ...