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?

Regards,
Bob

-----Oorspronkelijk bericht-----
Van:    sebb [mailto:[EMAIL PROTECTED]
Verzonden:      za 18-12-2004 0:09
Aan:    JMeter Users List
CC:     
Onderwerp:      Re: AbstractJavaSamplerClient / getSystemResource question
On Fri, 17 Dec 2004 18:00:23 +0100, Coret Bob <[EMAIL PROTECTED]> 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/test.properties, d:\etc\test.properties, .\test.properties, 
> 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 JMeter.java does in the getProperties() method.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to