[jboss-user] [JBoss Web Services Users] - Resteasy Mapped annotation on class rather than service

young_matthewd do-not-reply at jboss.com
Wed Sep 9 11:32:39 EDT 2009

using resteasy 1.1 together with latest jaxb 2.2

using Jackson transformation of JAXB classes and added the Mapped annotation to the called service.  works fine.  but i wanted to add the namespace mapping (to a json name) against the actual JAXB class being marshalled.  so i created a XJC plugin to write the necessary annotation in every class (giving the json name equal to the package name just to keep it simple).  read from the PDF guide that this would work:

"You use the @Mapped annotation on your JAXB classes, on your JAX-RS resource method, or on the parameter you are unmarshalling"

but the namespace isn't recognized at runtime and i get the classic:

"java.lang.IllegalStateException: Invalid JSON namespace"


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254218#4254218

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254218

More information about the jboss-user mailing list