• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linkage Error in axis web service

 
syruss kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have generated axis web service client while implement that in my application i got this error .





Please suggest me to resolve this.

Thanks in advance.

 
Mandar Joshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You get a linkage error when you have two classloaders loading the same class and one component in one classloader wants to talk to other component in other classloader using this common class.. For example

Class x {
//assume code here calls method(Abc) on Y.
}

Class Y {
void method(Abc abc);
}

Lets assume Classloader A loads x and ClassLoader B loads y and both the classloaders load Abc class. The fully qualified name of the class is classloader name + classname. So the classname of the Abc loaded by Classloader A is A.Abc and that by B is B.Abc . At runtime the loader will detect that there is a mismatch in the class names and it fails to link these together. Hence the linkage error.


To fix this problem make sure that this class javax/xml/stream/XMLStreamReader is loaded only by one classloader. You can search for the jars which have this class from findjar.com and make a scan in your system to see if you are loading redundant jars.

Thanks
Mandar
 
syruss kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot I have solved the issue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!