jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clifton Craig" <...@icsaward.com>
Subject Re: CLASSPATH woes with Java Request Sampler
Date Tue, 23 Sep 2003 19:40:19 GMT
Thank you Peter,

However, my code is calling code that I have no control over. This code uses
the System classpath to locate resources. I set the system classpath prior
to invoking JMeter but it appears that JMeter is altering the system
classpath upon execution. Please, I'm a beginner with class loaders and
such. Could someone help me with a good solution?

Clifton C. Craig
Intelligent Computer Systems
A division of Global Beverage Group
ccc@icsaward.com
(717) 295-7977
----- Original Message ----- 
From: "peter lin" <jmw00lfel@yahoo.com>
To: "JMeter Users List" <jmeter-user@jakarta.apache.org>
Sent: Monday, September 22, 2003 9:01 PM
Subject: Re: CLASSPATH woes with Java Request Sampler


>
> if you wrote your own sampler, the cleanest way is to write a custom
classloader that extends URLClassLoader. then use your classloader to load
those resources.
>
> this should give you the control needed. hope that helps.
>
>
> peter
>
>
> Clifton Craig <ccc@icsaward.com> wrote:
> Hello all:
>
> I've created a Java Request Sampler that I intend to use to test my EJB
app.
> However it is necessary that my Java request sampler have some additional
> entries in the CLASSPATH. These entries include classes which are in
> development along with some EJB server specific stuff. According to the
> JMeter docs it appears that I need to have any additional resources jarred
> and stored in the lib/ext folder. This approach is impractical to my
> scenario. I've experimented with using Class-Path headers in the jar
> manifest for my Java Request sampler but they seemed to not work. Are
there
> any other workarounds. I looked briefly at the NewDriver.java file in
> JMeter's core jar file and it seems as though it is filtering all entries
> from the CLASSPATH that do not end with ".jar". I need help. How can I get
> my Java Requester to see the rest of my app without jarring everything up?
>
> Clifton C. Craig
> Intelligent Computer Systems
> A division of Global Beverage Group
> ccc@icsaward.com
> (717) 295-7977
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


Mime
View raw message