You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ri...@smals.be on 2008/09/17 18:02:12 UTC

Classpath in Testplan and BeanShell

Hello

In the TestPlan in the Field Library I add a jar file.
C:\Documents and Settings\rim\workspace\JMeterAddOn\lib\HelloWorld.jar
The HelloWorld.jar file only contains the class HelloWorld.

If I instantiate the class in the BeanShellPreProcessor I always get an 
Error Class not found in the namespace. I generated the jar file out of 
Eclipse. The manifest.MF file is generatd by Eclipse. 

Are the classes in the classpath not visible in the BeanShell components 
or must I use a special Manifest File.

Cheers

Richard


______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de 
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan 
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in 
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht 
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden 
en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité 
et au délai de transmission des informations contenues dans cet e-mail. 
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail 
n'implique en aucun cas une reconnaissance de responsabilité, quelle 
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est 
pas destiné, nous vous prions de nous le signaler immédiatement et de 
détruire le message. 

Re: Classpath in Testplan and BeanShell

Posted by Ri...@smals.be.
Hi Sebb,

I found out that the problem was the JAR file created by Eclipse. I load 
the class using the functionality  in TestPlan form.

Cheers and thanks for your help.

Richard


______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de 
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan 
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in 
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht 
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden 
en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité 
et au délai de transmission des informations contenues dans cet e-mail. 
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail 
n'implique en aucun cas une reconnaissance de responsabilité, quelle 
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est 
pas destiné, nous vous prions de nous le signaler immédiatement et de 
détruire le message. 



sebb <se...@gmail.com> 
17/09/2008 18:17
Please respond to
"JMeter Users List" <jm...@jakarta.apache.org>





To
"JMeter Users List" <jm...@jakarta.apache.org>
cc

Subject
Re: Classpath in Testplan and BeanShell






Here's what I would try:

See if it works if you put the jar in the JMeter lib directory
instead. If so, then maybe the classpath used by BSH is being resolved
before the Library file is processed.

If that still does not work, try using standalone BeanShell to access the 
class.

On 17/09/2008, Richard.Markham@smals.be <Ri...@smals.be> wrote:
> Hello
>
>  In the TestPlan in the Field Library I add a jar file.
>  C:\Documents and Settings\rim\workspace\JMeterAddOn\lib\HelloWorld.jar
>  The HelloWorld.jar file only contains the class HelloWorld.
>
>  If I instantiate the class in the BeanShellPreProcessor I always get an
>  Error Class not found in the namespace. I generated the jar file out of
>  Eclipse. The manifest.MF file is generatd by Eclipse.
>
>  Are the classes in the classpath not visible in the BeanShell 
components
>  or must I use a special Manifest File.
>
>  Cheers
>
>  Richard
>
>
> 
______________________________________________________________________________________________
>  Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de
>  volledigheid of het tijdig toekomen van de informatie in deze e-mail. 
Aan
>  deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in
>  geen geval een erkenning van welkdanige aansprakelijkheid in.
>  Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht
>  niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te 
melden
>  en het bericht te vernietigen.
>
>  Smals décline toute responsabilité quant à l'exactitude, à 
l'exhaustivité
>  et au délai de transmission des informations contenues dans cet e-mail.
>  Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail
>  n'implique en aucun cas une reconnaissance de responsabilité, quelle
>  qu'elle soit.
>  Ce message s'adresse uniquement au destinataire. Si ce message ne vous 
est
>  pas destiné, nous vous prions de nous le signaler immédiatement et de
>  détruire le message.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org



Re: Classpath in Testplan and BeanShell

Posted by sebb <se...@gmail.com>.
Here's what I would try:

See if it works if you put the jar in the JMeter lib directory
instead. If so, then maybe the classpath used by BSH is being resolved
before the Library file is processed.

If that still does not work, try using standalone BeanShell to access the class.

On 17/09/2008, Richard.Markham@smals.be <Ri...@smals.be> wrote:
> Hello
>
>  In the TestPlan in the Field Library I add a jar file.
>  C:\Documents and Settings\rim\workspace\JMeterAddOn\lib\HelloWorld.jar
>  The HelloWorld.jar file only contains the class HelloWorld.
>
>  If I instantiate the class in the BeanShellPreProcessor I always get an
>  Error Class not found in the namespace. I generated the jar file out of
>  Eclipse. The manifest.MF file is generatd by Eclipse.
>
>  Are the classes in the classpath not visible in the BeanShell components
>  or must I use a special Manifest File.
>
>  Cheers
>
>  Richard
>
>
>  ______________________________________________________________________________________________
>  Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de
>  volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan
>  deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in
>  geen geval een erkenning van welkdanige aansprakelijkheid in.
>  Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht
>  niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden
>  en het bericht te vernietigen.
>
>  Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité
>  et au délai de transmission des informations contenues dans cet e-mail.
>  Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail
>  n'implique en aucun cas une reconnaissance de responsabilité, quelle
>  qu'elle soit.
>  Ce message s'adresse uniquement au destinataire. Si ce message ne vous est
>  pas destiné, nous vous prions de nous le signaler immédiatement et de
>  détruire le message.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org