Hi I am trying to put up a small webapp but I am getting above error. Below is my code
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = n
It looks like you have a jar file with an old/newer version of BasicHttpContext
. If there was a direct conflict, you'd receive a ClassNotFoundException
. ClassLoaders are typically jerks about this kind of thing. In this case, the class exists however does not have the method that another library (I believe it's httpclient that's invoking the Context
) was compiled against.