Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.LinkageError in JAXB

 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot. Your post saved lots of my time.
 
Savannah David
Greenhorn
Posts: 16
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Anubhav Anand : Thanks for the help... it really worked
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic