This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes JAxb binding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JAxb binding problem" Watch "JAxb binding problem" New topic

JAxb binding problem

beppe scalese

Joined: Nov 24, 2008
Posts: 4
Hi all,

I got a problem binding a Jaxb class in a json output.
I got this error "Property startdate appears in @XmlType.propOrder, but no such property exists. Maybe you meant startDate?" when I try to bind the following class.
Apparently this is because the json variable names are generated to be identical to the java variable name.
I’m sure there must be an annotation(like the one I tried to use "@XmlElement" with any success) that can be used to override the generated variable name so that we can change the java variable name in order to get the method names right.
Anyone could help me on this?

I agree. Here's the link:
subject: JAxb binding problem
Similar Threads
Assigning jsonobject to java class having one to many relationship
Need Help With JAXB Unmarshaller - Convert XML Back to Java Bean
convert java classes to .xsd xml schema in eclise
JWSDP2.0 - problem in deploying hello-jaxws sample application
jaxb marshalling problem