This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Stuart Swearengen
Posts: 26
  • 0
  • 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]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic