Reputation: 388
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
Upvotes: 0
Views: 1453
Reputation: 388
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
Upvotes: 1