Hi all,

  I'm having a little trouble getting started using JMeter.  I dl'd 1.9.1, and found 
the docs a bit confusing.  

  Here's what I'm trying to do.  I have a Java application that I would like to load 
test (many simultaneous threads).  The part I would like to test is not HTTP-based, 
and I'd rather not write an HTML front-end just so I can load test it.  I'd also like 
to reuse existing load-testing frameworks (jmeter), rather than write my own.

  I have written a subclass of AbstractJavaSamplerClient, and I see it show up in the 
JavaRequest>Classname pull-down menu.  Nevertheless, when I try to run it, I get an 
error.[1]  I did put log4j in the ext dir, but this doesn't seem to help.  What's the 
solution here?

  Re: documentation, the "JMeter Extension Scenario"[2] refers to log4j as the JMeter 
logging mechanism, although it looks like it really uses logkit.   Other parts of the 
documentation regarding writing extensions seem out of date (wrong interfaces).

  Also, is it possible to run JMeter in the standard Java way, by specifying a 
classpath, a main class, and a working directory?  Or better yet, is there an API for 
starting JMeter programmatically?

  Finally, perhaps JMeter not the best match for my project?  If there's another 
framework that might be simpler to set up for what I'm trying to do, I'd love to hear 
about it.

[1]
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at com.apelon.dts.webservice.test.load.TestSampler.<init>(TestSampler.java:12)
        at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:306)
        at java.lang.Class.newInstance(Class.java:259)
        at 
org.apache.jmeter.protocol.java.sampler.JavaSampler.createJavaClient(JavaSampler.java:228)
        at 
org.apache.jmeter.protocol.java.sampler.JavaSampler.sample(JavaSampler.java:202)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:277)
        at java.lang.Thread.run(Thread.java:536)

[2] http://jakarta.apache.org/jmeter/extending/JMeter%20Extension%20Scenario.html

  - Matt Munz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to