jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: Calling getSystemResourceAsStream in Test Element
Date Mon, 29 Oct 2007 15:32:48 GMT
On 29/10/2007, DELHOSTE Fabrice <> wrote:
> Hi,
> I'm having problem to load a resource in a test element, overriding
> classpath.
> Actually, I call ClassLoader.getSystemResourceAsStream() in some code
> external to JMeter, loading a property file available on the filesystem
> (not in JAR).
> When calling that code, my custom sampler is unable to find the resource
> file whereas it works outside JMeter.
> I don't want to change that code, which works normally outside JMeter.
> Obviously, I have added the directories containing that resource to
> user.classpath in
> I've checked all common classloading stuff but cannot make it work.
> Any idea? Am I missing something?

I suggest you dump out the contents of the classpath in the code you
are using to interface with your external API.

Indeed what happens if you call
ClassLoader.getSystemResourceAsStream() in the interface code?

> Fabrice

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

View raw message