File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes JAXB Related Error Debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB Related Error Debugging" Watch "JAXB Related Error Debugging" New topic
Author

JAXB Related Error Debugging

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I am really new to JAXB. I am working on "unmarshaller". I am running a tutorial example that I found online and got an error message:

Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.bind.annotation.XmlAccessorType.value()Ljavax/xml/bind/annotation/AccessType;

Would anybody kindly help to point a direction? Thank you.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 547
    
    3
I think this is stamped from the same versioning problem of xjc as another post
http://www.coderanch.com/t/542468/XML/JAXB-JDK-Compatibility
This is the answer I propose there and therefore equally applicable here.
quote
If you're using jaxb from within the jwsdp-2.0 download, then I'm afraid you have to make an addition download of the newest jaxb ri. It is 2.2.1 the last time I looked at it. The jaxb-xjc.jar that came with the jwsdp-2.0 is wrongly bundled with a beta that's why. Use the latest download to replace the jaxb that came with it.
unquote
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Unfortunately, it is exactly the problem. I am using the JAXB in jwsdp-2_0. I surfed on the internet for the entire morning and was unable to find another version of JAXB. Would you kindly provide the link to it?

PS. I have see some RIs. I downloaded them; however, nothing but some documents was found in them.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 547
    
    3
The latest RI 2.2.4-1, here.
http://jaxb.java.net/2.2.4-1/
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Thanks very much. The problem is fixed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB Related Error Debugging