[英]404 Error when deployed in tomcat server
I have deployed my java web application in tomcat (v 7.0) . 我已经在tomcat(v 7.0)中部署了Java Web应用程序。 It successfully deployed and also showed my index.jsp page. 它已成功部署,并显示了我的index.jsp页面。 wen i try to call my restfull web services from rest client it is giving 404 error. 我尝试从Rest Client调用我的restfull Web服务,它给出404错误。
after deploying i got localhost:9090/mywebapp in browser 部署后,我在浏览器中得到了localhost:9090 / mywebapp
below is the url pattern i gave to rest webservices. 以下是我给其余Web服务提供的URL模式。
<servlet-name>ServletAdaptor</servlet-name>
<url-pattern>/webresources/*</url-pattern>
now i tried http://localhost:9090/mywebapp/webresources/myresource in rest client. 现在我在其余客户端中尝试了http:// localhost:9090 / mywebapp / webresources / myresource 。 the tomcat is giving 404 error. 的tomcat给出了404错误。
FYI: i am using jersy api for restfull web services 仅供参考:我正在使用jersy api进行Restfull Web服务
any suggestion is appreciated 任何建议表示赞赏
thanks in advance 提前致谢
Below check list might be useful: 以下检查清单可能会有用:
1. make sure application running on the same http port 1.确保应用程序在相同的http端口上运行
2. make sure application context path is same as you given 2.确保应用程序上下文路径与您指定的路径相同
3. make sure the user have proper authorization to access service 3.确保用户具有访问服务的适当权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.