You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client = MWS::MarketplaceWebServiceClient.new #this does NOT work!!!
NameError: MarketplaceWebServiceClient not found in packages com.amazonaws.mws, com.amazonaws.mws.model; last error: cannot load Java class com.amazonaws.mws.model.MarketplaceWebServiceClient
const_missing at file:/Users/...
Why is it not found?
The text was updated successfully, but these errors were encountered:
It seems that MarketplaceWebServiceClient does not have a no-arg constructor.
If you try to use an existing one, you get a different error:
irb(main):006:0> MWS::MarketplaceWebServiceConfig.new
=> #<Java::ComAmazonawsMws::MarketplaceWebServiceConfig:0x5ab9f791>
irb(main):007:0> x=_
=> #<Java::ComAmazonawsMws::MarketplaceWebServiceConfig:0x5ab9f791>
irb(main):008:0> MWS::MarketplaceWebServiceClient.new('','','','',x)
NameError: MarketplaceWebServiceClient not found in packages com.amazonaws.mws; last error: cannot link Java class com.amazonaws.mws.MarketplaceWebServiceClient, probable missing dependency: org/apache/http/HttpEntity
You'll need to get the necessary apache libraries, load them, etc., and go from there.
Also, at first I thought the issue was related to MarketplaceWebServiceClient being an implementation of an interface, and by accident, I found I was able to instantiate the Java interface using MWS::MarketplaceWebService.new, which I shouldn't be able to do (but perhaps that is a topic for a different ticket?).
I'm having trouble wrapping the amazon-merchant-web-service-java-sdk in jruby.
The java sdk, jar and source, can be found at: https://developer.amazonservices.com/doc/bde/feeds/v20090901/java.html/182-0022359-5036344 (click the yellow download button in upper right)
I am able to instantiate some classes ....
... but not others
Why is it not found?
The text was updated successfully, but these errors were encountered: