to wjmmml(笑着悲伤): Context-root在weblogic内是否为和WAR文件同名?谢谢
to wjmmml(笑着悲伤): 我得打包文件名为:ServletApp.WAR,Servlet名为firstservlet 在Browser内键入:http://198.118.60.123:7001/ServletApp/servlet/firstservlet 后提示: 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://hostname:port/context-root/servlet/bookcart 吧
Context-root在weblogic内是否为和WAR文件同名?谢谢
我得打包文件名为:ServletApp.WAR,Servlet名为firstservlet
在Browser内键入:http://198.118.60.123:7001/ServletApp/servlet/firstservlet 后提示:
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.
是我web.xml文件出现的问题,调用URL写的没有问题!