the trailboss abuses his CodeRanch power for his other stuff (power corrupts. absolute power corrupts absolutely is kinda neat!)
permaculture light bulbs permaculture electric heat permaculture cast iron permaculture wood burning stove permaculture solar food dehydrators
The moose likes Meaningless Drivel and the fly likes JAXB 2.0 Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Reply locked New topic
Author

JAXB 2.0 Problems

Santhosh GK
Greenhorn

Joined: May 24, 2006
Posts: 2
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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 ]

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
permaculture playing cards
 
subject: JAXB 2.0 Problems