• 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

@XMLRootElement, Jersey 1.8 - JSON output

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I recently upgraded my IDE from Netbeans 7.0.1 to 7.1.1 and it turned out that the new version comes with Jersey 1.8 ( I guess the older one used to have 1.6). Anyway, I have a web service that used to honor my @XMLRootElement(name="xyz") annotation for JSON outputs but after upgrading the jersey, it stopped honoring @XMLRootElement(name="xyz") annotation completely.

I have been searching the posts and came across somebody that has the same problem an got over with wrapping the returned List with a wrapper class, which isn't look good, I mean creating one more object just to force the root element name.

Any help is appreciated,

Thank you..
reply
    Bookmark Topic Watch Topic
  • New Topic