• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JAX-WS There's no ObjectFactory / IllegalAnnotationsError JAX-WS

Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building a webservice client from WSDL. I have a client which works fine if i build/call it in AXIS, but in JAX-WS I get an error when I call the built client.

"Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://etc...}Value"

I have a feeling it might be this (see below) that is causing a problem?

Any thoughts?

@XmlElementRef(name = "Value", type = JAXBElement.class)
protected JAXBElement<Object> value;

[I'm using WAST with fixpack 17 - if that has any relevance]
    Bookmark Topic Watch Topic
  • New Topic