• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RestEasy Delete a List of Integers

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone, thanks for reading my post.

I'm new to Resteasy and web services, so I greatly appreciate any help or guidance you can provide. I'm trying to delete a List of Intergers from a Rest server. If I want to delete a list of integers (ids) from the database, does my interface have to declare the @Path?

CLIENT:
The client broker:

The client side interface:


SERVER:
The server side implementation of my client side interface (above):

When I execute the above code I get a RuntimeException: could not find writer for content-type application/xml type: java.util.List. I do have the "resteasy-jaxb-provider.jar" added to Eclipse /WEB-INF/lib directory.

I've tried declaring and undeclaring the Path, Consumes and modified the delete paramters but nothing I do works. The web and documentation doesn't provide much information on @Delete.

Thanks for any help you can provide!
Environment: Windows 7, JBoss 5.1, Eclipse Helios, RestEasy 2.3.5
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic