jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coret Bob" <>
Subject RE: AbstractJavaSamplerClient / getSystemResource question
Date Mon, 20 Dec 2004 08:20:56 GMT

Actually, the example I provided is just to show the problem. Our testcase involves testing
a specific component and this component uses the ClassLoader.getSystemResource method. We
can't make change to this component...

Do you think this is a Jmeter problem (the way the NewDriver class is written) of is this
a Java problem?


-----Oorspronkelijk bericht-----
Van:	sebb []
Verzonden:	za 18-12-2004 0:09
Aan:	JMeter Users List
Onderwerp:	Re: AbstractJavaSamplerClient / getSystemResource question
On Fri, 17 Dec 2004 18:00:23 +0100, Coret Bob <> wrote:
> Hi all,
> We're building our own AbstractJavaSamplerClient but we run into a problem when we want
to read a property file using the ClassLoader.getSystemResource method. Whatever we try in
regard to the directory/filename (file:///d:/etc/, d:\etc\,
.\, test) or the placement of the (in d:\etc, jmeter bin, jmeter lib) the file
cannot be found.
> If we try the same in a seperate Java client (so without Jmeter) the file can be found?!?!

I think the difference could be a classpath problem.

Would it not be easier to use the java.util.Properties.load() method
to load the properties file?

This is what does in the getProperties() method.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message