部署成功了吗?用weblogic控制台看看。

解决方案 »

  1.   

    http://hostname:port/context-root/bookcart 
    应该是:
    http://hostname:port/context-root/servlet/bookcart 吧
      

  2.   

    应该是:http://hostname:port/context-root/你的war名/bookcart
      

  3.   

    to wjmmml(笑着悲伤):
    Context-root在weblogic内是否为和WAR文件同名?谢谢
      

  4.   

    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.
     
      

  5.   

    我得问题已经解决,谢谢各位的意见!
     是我web.xml文件出现的问题,调用URL写的没有问题!