Skip to main content

AccessOrder : class not found ...

3 replies [Last post]
francisrenaud
Offline
Joined: 2006-09-07
Points: 0

Hi all.

I got this exception when trying to marshall xjc-generated classes :

java.lang.NoClassDefFoundError: javax/xml/bind/annotation/AccessorOrder

The class is not in the jaxb-api.jar. But ... should it or should it not? According to the doc it is javax.xml.bind.annotation package. Was it removed and replaced by another one?

And since my program is looking for it, is it possible that I have the wrong version of xjc?

I tried another version of xjc and I got this error :
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.

Can anyone help, please?

Thanks,

Francis Renaud

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09
Points: 0

It shoudn't. It's replaced by XmlAccessorOrder.

Only older versions of the JAXB RI 2.0 early access releases generate such an annotation, (this was a part of JWSDP 2.0.)

So if you installed JWSDP 2.0, please download the latest and greated JAXB RI from http://jaxb.dev.java.net/

You can also check the version of the JAXB RI by running xjc with the -version option.

raj_mohan30
Offline
Joined: 2006-05-28
Points: 0

Hello,

Greetings,

I too got the same exception while deploying the web service in Tomcat5.5.20 using Java SE 6 beta-101 and JWSDP2.0.

So i resolved it by replacing the jaxws-rt.jar and jaxb-impl.jar present in JWSDP2.0 with the latest Reference Implementations's(RI)(i.e JAXWS2.0 RI & JAXB2.0 RI)available in java.net.

My Question: Does these latest JAXWS2.0 RI and JAXB2.0 RI's will be packaged with JWSDP2.0 in future releases. If so, may i know when can i expect the updated JWSDP2.0?

Thanks In advance,

kohsuke
Offline
Joined: 2003-06-09
Points: 0

Unfortunately JWSDP is EOL-ed. See http://java.sun.com/webservices/jwsdp/index.jsp

So I believe there's no plan to release a further version of JWSDP. We are consolidating our efforts on Glassfish.