• Post Reply Bookmark Topic Watch Topic
  • New Topic

[Urgent] POJO ws with REST and JAX-RS not working  RSS feed

 
Victor Bogo
Greenhorn
Posts: 25
AngularJS Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone

I need to setup one ws with REST in a way i can call it on url and receive one string response.

The project compiles (using maven) and deploy sussesfully but i cant acess it using *domain*/Mars/rest/mars/parameter

RESTRICTIONS:
I need to do it without using any external JARS (only JEE6)
Must work on any JEE container

Here is what i got so far:

Robot.java


web.xml


pom.xml
 
Dave Tolls
Ranch Hand
Posts: 2504
27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've defined a Path for your Robot class as "robot".
I don't see "robot" in the URL you are using.
 
Victor Bogo
Greenhorn
Posts: 25
AngularJS Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Tolls wrote:You've defined a Path for your Robot class as "robot".
I don't see "robot" in the URL you are using.


Thats true, i just figured it out while studying on IBM's tutorials here!

Anything else looks wrong?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!