cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK run error

SdkAPIInterfaceServiceLocator init error

static {
try{
//by default, wsdl is in the root package
URL url = EBayAPIInterfaceService.class.getClassLoader().getResource(EBAY_WSDL);
if (url == null) {
throw new SdkException("fail to load ebay wsdl, please ensure that " + EBAY_WSDL + " is in the classpath!");
}

QName qn = new QName(EBayConstants.EBLNS, EBAY_SERVICE_NAME);
//get eBay service
log.info("loading wsdl : " + url.toString());
service = new EBayAPIInterfaceService(url, qn);
log.info("wsdl loaded and service initialized.");
//set handler
HandlerResolver ccResolver = new EBayServiceHandlerResolver();
service.setHandlerResolver(ccResolver);
} catch (Exception e) {
e.printStackTrace();
}
}

it work well on my computer,but when run linux is error:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.ebay.sdk.SdkAPIInterfaceServiceLocator
at com.ebay.sdk.ApiCall.executeByApiName(ApiCall.java:646)
and i found the log 

log.info("loading wsdl : " + url.toString());

 in linux

not found the log

log.info("wsdl loaded and service initialized.");

 and i use dependency

<dependency>
<groupId>io.github.linus87</groupId>
<artifactId>ebaysdkcore</artifactId>
<version>1131</version>
</dependency>
<dependency>
<groupId>io.github.linus87</groupId>
<artifactId>ebaycalls</artifactId>
<version>1131</version>
<scope>compile</scope>
</dependency>
Message 1 of 1
latest reply
0 REPLIES 0