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(
at com.ebay.sdk.SdkSoapException.fromSOAPFaultException(
at com.ebay.sdk.ApiCall.executeByApiName(
at com.ebay.sdk.ApiCall.execute(
at EBEngine.main(
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)







  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