I know there are several threads about this, but I have a doubt.
I'm getting a ClassNotFoundException running the JUnitSampler of JMeter.
This test is run by maven (using a specific plugin for it). This plugin creates a new Thread to call JMeter with all the parameters that needs.
The class that the JUnitSampler is trying to run is in the classpath (is not jar).
I know this because I run maven with
-X parameter and it shows this:
[DEBUG] Test Classpath :
[DEBUG] /path/to/project/target/classes
[DEBUG] /path/to/project/target/test-classes
Looking at JUnitSampler code I can see this
theclazz = Thread.currentThread().getContextClassLoader().loadClass(className.trim());
Is there any reason that the class couldn't be found?