| Author |
java.lang.LinkageError in JAXB
|
Anubhav Anand
Ranch Hand
Joined: May 18, 2007
Posts: 341
|
|
There are exposed services at one of the server. I have my JAX-WS client as a java project and it works fine. When I include the client jar in my web-ui project and try to talk to the services, I get java.lang.LinkageError. I googled and found the JAXB unoffical guide and tried to use the endorsed mechanism given there. It doesn't help. I am using JDK 1.5 update 16. and Tomcat 6.0.18. I am using JAX-WS classes to make the web service delegate and client. Please help. It's really killing me.. Thanks in advance.
|
 |
Anubhav Anand
Ranch Hand
Joined: May 18, 2007
Posts: 341
|
|
Hi All, I finally resolved it and listing it for anyone else who may face the problem. The issue was that I was thinking that my JDK version was the culprit, but I found that the Java EE 5 libraries I was using were had the older version of JAXB(2.0) bundled while my JDK 1.5 update 16 had the JAXB 2.1 bundled libraries. I simple got rid of the EE libraries and placed the ones which had JAXB 2.1 bundled. The issue was because the JAXB 2.0 libraries can't understand the JAXB 2.1 schemas.
|
 |
er.gaurav goel
Greenhorn
Joined: Dec 28, 2011
Posts: 2
|
|
Thanks alot. Your post saved lots of my time.
|
 |
Savannah David
Greenhorn
Joined: Jun 07, 2012
Posts: 15
|
|
|
@Anubhav Anand : Thanks for the help... it really worked
|
You're never a loser until you quit trying.
|
 |
 |
|
|
subject: java.lang.LinkageError in JAXB
|
|
|