On 08/12/2009, danomano <[email protected]> wrote: > > Hi all, I created a bunch of tests that use the HTTPClient (the apache > implmentation)...and now I discovered that any test I use that has the > HTTPClient will fail if I start it from maven. > > I'm using: > maven-jmeter-plugin version: 1.0 > jmeter 2.3
Two observations: - the current version of JMeter is 2.3.4; 2.3 is very old - the maven-jmeter-plugin is not a part of the JMeter distribution. It is a 3rd party add-on from an external source. > The requests being sent are https requests. > > Any thoughts on how can resolve this? I'm not maven guru (is there a way to > force the jmeter artifact to include the commons-codec (which is included in > the default jmeter install). > > the actual errors I'm getting are as follows: > > 2009/12/08 15:42:32 INFO - jmeter.util.JsseSSLManager: SSL session context: > per-thread > 2009/12/08 15:42:32 ERROR - jmeter.threads.JMeterThread: Test failed! > java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException > at > org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:217) > at > > org.apache.commons.httpclient.methods.ExpectContinueMethod.<init>(ExpectContinueMethod.java:92) > at > > org.apache.commons.httpclient.methods.EntityEnclosingMethod.<init>(EntityEnclosingMethod.java:118) > at > org.apache.commons.httpclient.methods.PutMethod.<init>(PutMethod.java:75) > at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:807) > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1021) > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1007) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:290) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.ClassNotFoundException: > org.apache.commons.codec.DecoderException > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:303) > at > > org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) > at > > org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) > at > > org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274) > at > > org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) > ... 9 more > > > > > > -- > View this message in context: > http://old.nabble.com/JMeter-Maven---Http-Request-HTTPClient-%28bad-jmeter.pom-%29-tp26703040p26703040.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

