简体   繁体   中英

404 Error when deployed in tomcat server

I have deployed my java web application in tomcat (v 7.0) . It successfully deployed and also showed my index.jsp page. wen i try to call my restfull web services from rest client it is giving 404 error.

after deploying i got localhost:9090/mywebapp in browser

below is the url pattern i gave to rest webservices.

<servlet-name>ServletAdaptor</servlet-name>
    <url-pattern>/webresources/*</url-pattern>

now i tried http://localhost:9090/mywebapp/webresources/myresource in rest client. the tomcat is giving 404 error.

FYI: i am using jersy api for restfull web services

any suggestion is appreciated

thanks in advance

Below check list might be useful:
1. make sure application running on the same http port
2. make sure application context path is same as you given
3. make sure the user have proper authorization to access service

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM