简体   繁体   English

在Tomcat服务器中部署时出现404错误

[英]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.

相关问题 Spring.io和Tiles 3-在Tomcat服务器中部署.war文件时出现错误404 - Spring.io and Tiles 3 - Error 404 when .war file is deployed in Tomcat server 在tomcat上部署Spring Boot应用程序时出现404错误 - When Spring Boot app is deployed on tomcat gives 404 error Spring Boot 应用程序在部署到 Tomcat 时提供 404,但适用于嵌入式服务器 - Spring Boot application gives 404 when deployed to Tomcat but works with embedded server Spring Boot MVC应用程序在部署到外部Tomcat / tc Server实例时返回HTTP 404 - Spring Boot MVC Application returns HTTP 404 when deployed to an external Tomcat/tc Server instance 部署在外部tomcat 9服务器上时,Spring Boot REST Controller返回404 - Spring Boot REST Controller returns 404 when deployed on external tomcat 9 server Tomcat 在所有新部署的 WAR 文件上报告 404 错误? - Tomcat reporting 404 error on all of newly deployed WAR files? 尝试访问Tomcat上已部署的战争时获取HTTP状态404 - Get HTTP Status 404 when trying to access deployed war on Tomcat 404与tomcat / eclipse部署的Webapp - 404 with tomcat / eclipse deployed webapp 在Apache Tomcat中部署应用程序时出错 - error when deployed application in apache tomcat 部署到AWS时出现Resteasy 404错误 - Resteasy 404 error when deployed to AWS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM