demouser | Posts: 9

Getting ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest

0 votes
Hi I am getting the above error while running the sdk examples on tomcat server. There are no other compile time dependencies other than the sdk itself correct?

harishaidary | Posts: 1812

Reply to: Getting ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest

0 votes
This exception tells you that the mentioned class is missing in the runtime classpath. Make sure you've referenced all the SDK JAR files files properly.

demouser | Posts: 9

Reply to: Getting ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest

0 votes
once I have sdk in the POM, it should get all the dependencies. the documentation does not say that we have to include any other dependencies

mwilliams | Posts: 957

Reply to: Getting ClassNotFoundException: org.apache.http.client.methods.HttpUriRequest

0 votes
With the Java SDK, when you download, you'll see there are a few files. The java doc, sources, sdk-version, and sdk-version-with-dependencies. If you look into the with dependencies archive, you'll see several dependencies listed in the META-INF/maven/ folder. One of them is the one you list in the title of this post. See the attached image. Hope this helps.

Attachments

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off