https://issues.apache.org/bugzilla/show_bug.cgi?id=51854
Bug #: 51854 Summary: Pluging a RequestView fails with ClassNotFoundException Product: JMeter Version: Nightly (Please specify date) Platform: All OS/Version: All Status: NEW Severity: blocker Priority: P2 Component: Main AssignedTo: notifications@jakarta.apache.org ReportedBy: p.moua...@ubik-ingenierie.com Classification: Unclassified Hello, I am implementing a specific RequestView for a particular kind of requests. I package my JAR and put it in lib/ext. I run JMeter but my RequestView is not found. I debugged RequestPanel constructor: try { classesToAdd = JMeterUtils.findClassesThatExtend(RequestView.class); } catch (IOException e1) { // ignored } This find my class. But this code: final RequestView requestView = (RequestView) Class.forName(clazz).newInstance(); Fails with ClassNotFoundException. I changed this to final RequestView requestView = (RequestView) Thread.currentThread().getContextClassLoader().loadClass(clazz).newInstance(); and it works. Is there something wrong in my approach or should I submit a patch ? This issue also occurs on 2.5. Thank you Regards Philippe Mouawad -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@jakarta.apache.org For additional commands, e-mail: notifications-h...@jakarta.apache.org