Skip to main content
Published: August 28 2008, 9:12:00 PMUpdated: November 28 2020, 4:53:21 PM

I'm running into PrefixResolver exception with JAVA SDK as below. How do I resolve it?

NoClassDefFoundError: org/apache/xml/utils/PrefixResolver
at com.ebay.sdk.util.XmlUtil.getChildString(XmlUtil.java:356)
at com.ebay.sdk.SdkSoapException.fromSOAPFaultException(SdkSoapException.java:51)
at com.ebay.sdk.ApiCall.executeByApiName(ApiCall.java:508)
at com.ebay.sdk.ApiCall.execute(ApiCall.java:326)
at com.ebay.sdk.call.GetItemCall.getItem(GetItemCall.java:255)
at EBEngine.main(EBEngine.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

 

 

 


 

 

Summary

  This can occur as your JVM can't locate the org.apache.xml.utils.PrefixResolver class which is included in the xalan.jar library. You need to make sure to add ${JAVA_SDK_HOME}/lib/externalLib/xalan.jar if you use the SDK JAXB verion or ${JAVA_SDK_HOME}/externalLib/axis-1_1/xalan.jar if you use the SDK Axis version to your class path.

 

 

How well did this answer your question?
Answers others found helpful