• Post Reply Bookmark Topic Watch Topic
  • New Topic

Test RS Service

 
Markus Schmider
Ranch Hand
Posts: 136
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I want to test JAX-RS Webservices
JBoss EAP 6.1

my web.xml:


My Service class:


I get a 404 for http://localhost:8080/rstest/rest/user/list
The application is deployed, I can reach http://localhost:8080/rstest/index.html
I see no exceptions in the log.

 
Markus Schmider
Ranch Hand
Posts: 136
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After some playing around: I had to delete the /rest from the Path:



Has anybody a logical explication for this?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Path value is relative to the root of the REST application - which is "/rest", as defined in web.xml. So that's a different "root" than the one used by the web app in general.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!