I believe you need to set grinder.jvm.classpath in the
plugins/configuration/properties to include the jar files you need.
On Wed, Sep 25, 2013 at 12:56 PM, Anirban Majumdar <
ani...@gm...> wrote:
> are you sure that your JAR file is placed in the classpath? can you print
> that using "echo" and verify the presence of your JAR file.
>
>
> On Wed, Sep 25, 2013 at 9:57 PM, Gopu Shrestha <gsh...@ut...> wrote:
>
>> I followed this steps to setup Grinder with maven project https://code.google.com/p/grinder-maven-plugin/wiki/Configuration
>>
>>
>> I am able to run Hello world but failed to work loading my own Jar files. Import Error.
>>
>> Any help will be highly appreciated....
>>
>> net.grinder.scriptengine.jython.JythonScriptExecutionException:
>> ImportError: no module named gov
>> File ".\target\test\config\hello.py", line 3, in ?
>> 2013-09-24 09:48:24,872 INFO agent: finished
>>
>> *her is my jython script:*
>> from net.grinder.script.Grinder import grinder
>> from net.grinder.script import Test
>> from gov.utah.grinder import GrinderTest
>>
>> # defining a simple "hello world" function, in order to have something to
>> test
>> def hello_world():
>> thread = grinder.getThreadNumber()
>> print '> worker thread %d: hello world!' % thread
>>
>> class TestRunner:
>>
>> def __init__(self):
>> # creating a Grinder test object
>> #test = Test(1, "saying hello")
>> test = GrinderTest().readCSV
>> # creating a proxy, by wrapping the hello world function with our
>> Test-object
>> self.wrapped_hello = test.wrap(hello_world)
>>
>> def __call__(self):
>> # calling "hello world" through the wrapped function
>> self.wrapped_hello()
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> grinder-use mailing list
>> gri...@li...
>> https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> grinder-use mailing list
> gri...@li...
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>
|