This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.LinkageError in JAXB

 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot. Your post saved lots of my time.
 
Greenhorn
Posts: 16
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Anubhav Anand : Thanks for the help... it really worked
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic