Eclipse Restful web service [message #1212029] |
Tue, 26 November 2013 13:39 |
Eclipse User |
|
|
|
I am using Restful web service in eclipse. Few days ago it is running smoothly. But today, something goes wrong. Web services are running properly but when I modified something on web service program it does not reflect after invoking the web service. I have noticed earlier that whenever I changed small code in my porgram the server starts automatically and it reflects on the fly.
Now my web service starts but seems like it runs from cache. Whatever I modified in the program it does not show in output. I have restart (stop & start) the server and even restart the eclipse but nothing changes. It give always previous results. for example
@Path("/todo")
public class TodoResource {
// This method is called if XMLis request
@GET
//@Path("/text")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Todo getXML() {
Todo todo = new Todo();
todo.setSummary("testing web service");
todo.setDescription("This is my first todo using restful");
return todo;
}
when I run this web service, it gives output as
testing web service
This is my first todo using restful
When I modified somthing like (just segement of code 4444 is added)
todo.setSummary("testing web service 4444");
it does not display 4444, instead it show older output
testing web service
This is my first todo using restful
Its really starnge and I do not know what goes wrong.
Any helps or suggestions are appriciated.
eclipse Version: Indigo Service Release 2
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.03097 seconds