This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Services and the fly likes Linkage Error in axis web service Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Linkage Error in axis web service" Watch "Linkage Error in axis web service" New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Linkage Error in axis web service
 
Similar Threads
Getting "java.lang.OutOfMemoryError: PermGen space" exception while reading xlsx file using POI 3.7
Why Just run in my PC ?
ClassNotFoundException error
3rd party library problem
ClassNotFoundException: javax.servlet.Servlet at Tomcat startup