0

java.lang.NoClassDefFoundError

While opening JMeter 5.1v in log I came across an issue

i.e WARN o.j.r.Plugin: Unable to load class: com.atlantbh.jmeter.plugins.oauth.OAuthSampler java.lang.NoClassDefFoundError: org/apache/jmeter/protocol/http/sampler/HTTPSampler2 I had added oAuth sampler plugins in lib/ext also

please suggest me to overcome this issue

1
  • How did you add the plugin(s)? I wouldn't expect these types of issues when you use the pluginmanager
    – Ray Oei
    Commented Mar 25, 2019 at 13:34

2 Answers 2

0

The required class - HTTPSampler2 has been removed as a part of Bug 60727 - Drop commons-httpclient-3.1 and related elements hence the latest version you can use with this OAuthSample plugin seems to be JMeter 3.1

You can download JMeter 3.1 from JMeter Archives page

1
  • tq for ur guidence @Dmitri T
    – Guruganesh
    Commented Mar 28, 2019 at 4:56
0

The class org.apache.jmeter.protocol.http.sampler.HTTPSampler2 has been removed in JMeter v3.2. The corresponding bugzilla entry is 60727.

The documentation for the plugin states that the plugin is deprecated. You would probably have to change the base class in the sources.

That seems not to be an easy task.

1
  • Thanks for ur guidance @ Felix Schumacher
    – Guruganesh
    Commented Mar 28, 2019 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.