Bookmark Topic Watch Topic
  • New Topic

JAXB 2.0 Problems

 
Santhosh GK
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
The errors are on generated code. For example:

@XmlAccessorType(AccessType.FIELD)
@XmlType(name = "Account_Type", propOrder = {
"product",
"id",
"type"
})

The error on this block of code is "Syntax error on tokens. Please delete the tokens."


@XmlElement(name = "Product")
protected Product_Type product;
@XmlElement(name = "Id", type = Short.class)
protected short id;
@XmlElement(name = "Type", type = Short.class)
protected short type;

On the above generated block, the errors are:
"Duplicate method XMLElement."
"Invalid Character. Delete this token @"
"Return type for method is missing."


Plz help me to resolve this problem
[ May 24, 2006: Message edited by: Santhosh GK ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think that is a bit more meaningful for this forum.

Moving it to the more appropriate XML and Related Technologies forum.

Well, I guess you duplicate posted this question, since you have already posted there. So I am going to close this thread. Please refrain from duplicate posting.

Thanks

Mark
[ May 24, 2006: Message edited by: Mark Spritzler ]
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic