| Author |
Linkage Error in axis web service
|
syruss kumar
Ranch Hand
Joined: Jul 23, 2009
Posts: 87
|
|
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.
|
All search starts with beginner's luck and all search ends with victor's severly tested.
|
 |
Mandar Joshi
Greenhorn
Joined: Nov 21, 2007
Posts: 5
|
|
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
Joined: Jul 23, 2009
Posts: 87
|
|
Thanks a lot I have solved the issue
|
 |
 |
|
|
subject: Linkage Error in axis web service
|
|
|