This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Stuart Swearengen
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]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic