Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Restful web service(web service in eclipse)
Eclipse Restful web service [message #1212029] Tue, 26 November 2013 13:39
Eclipse UserFriend
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
Previous Topic:Glassfish 4 Eclipse Kepler
Next Topic:Cursor problem in editor
Goto Forum:
  


Current Time: Sun Apr 20 19:41:36 EDT 2025

Powered by FUDForum. Page generated in 0.03097 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top