You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Nirodha Pramod <ni...@wso2.com> on 2012/02/27 22:22:31 UTC

How to set classpath only for a specific beanshell sampler/ preprocessor

Hi,

 I want to run a specific java client code inside a beanshell sampler. To
run that I had to add some dependencies to the jmeter/lib folder. Doing
that somehow has broken the Mailer visualizer. This happens only when those
dependencies are added to the jmeter/lib forlder.  Rather than copying them
to the lib folder can I specify a class path for beanshell sampler, only
for it to use.

Thanks,
Nirodha

-- 
*Nirodha Gallage*
Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Email: nirodha@wso2.com   Mobile: +94716429078

Re: How to set classpath only for a specific beanshell sampler/ preprocessor

Posted by Deepak Shetty <sh...@gmail.com>.
maybe Im wrong
http://www.beanshell.org/manual/classpath.html

regards
deepak

On Mon, Feb 27, 2012 at 1:26 PM, Deepak Shetty <sh...@gmail.com> wrote:

> you would need to write a custom class loader.
>
> Its probably more productive to find out which class conflicts and fix
> either your class or the mailer visualizer..
>
>
> On Mon, Feb 27, 2012 at 1:22 PM, Nirodha Pramod <ni...@wso2.com> wrote:
>
>> Hi,
>>
>>  I want to run a specific java client code inside a beanshell sampler. To
>> run that I had to add some dependencies to the jmeter/lib folder. Doing
>> that somehow has broken the Mailer visualizer. This happens only when
>> those
>> dependencies are added to the jmeter/lib forlder.  Rather than copying
>> them
>> to the lib folder can I specify a class path for beanshell sampler, only
>> for it to use.
>>
>> Thanks,
>> Nirodha
>>
>> --
>> *Nirodha Gallage*
>> Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> Email: nirodha@wso2.com   Mobile: +94716429078
>>
>
>

Re: How to set classpath only for a specific beanshell sampler/ preprocessor

Posted by Deepak Shetty <sh...@gmail.com>.
you would need to write a custom class loader.

Its probably more productive to find out which class conflicts and fix
either your class or the mailer visualizer..


On Mon, Feb 27, 2012 at 1:22 PM, Nirodha Pramod <ni...@wso2.com> wrote:

> Hi,
>
>  I want to run a specific java client code inside a beanshell sampler. To
> run that I had to add some dependencies to the jmeter/lib folder. Doing
> that somehow has broken the Mailer visualizer. This happens only when those
> dependencies are added to the jmeter/lib forlder.  Rather than copying them
> to the lib folder can I specify a class path for beanshell sampler, only
> for it to use.
>
> Thanks,
> Nirodha
>
> --
> *Nirodha Gallage*
> Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Email: nirodha@wso2.com   Mobile: +94716429078
>