weblogic部署的web应用,打开报错Error 403--Forbidden

来源:互联网 发布:淘宝小石头运动添柏岚 编辑:程序博客网 时间:2024/05/29 01:52

Error 403--Forbidden

From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.4.4 403 Forbidden

The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.


访问的http://192.168.2.74:7001/ba 的时候,出现了上述错误。
 
这个是因为Weblogic与Tomcat存在差异导致的理解错误。
 
WEBLOGIC需要将访问地址设置到更末一级,例如http://192.168.2.74:7001/ba/login.jsp 就可以避免上面的Error 403--Forbidden错误。

参考web项目下的测试:


原创粉丝点击