1. 程式人生 > >weblogic部署的web應用,開啟報錯Error 403--Forbidden

weblogic部署的web應用,開啟報錯Error 403--Forbidden

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專案下的測試: