SWTBot and log4j 1.2.15https://www.eclipse.org/forums/index.php/mv/msg/167506/531227/#msg_531227
Exception in thread "WorkbenchTestable" java.lang.IllegalArgumentException: No Classloader found for plug-in org.eclipsecon.swtbot.example
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getCl assLoader(RemotePluginTestRunner.java:79)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTe stClassLoader(RemotePluginTestRunner.java:73)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lass(RemoteTestRunner.java:693)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lasses(RemoteTestRunner.java:429)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:452)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:390)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main( RemotePluginTestRunner.java:64)
at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(U ITestApplication.java:117)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:71)
at java.lang.Thread.run(Thread.java:619)

Has anyone else had this kind of problem before or knows how this could be resolved?

Thank you.]]>paolizq2010-05-04T09:02:33-00:00Re: SWTBot and log4j 1.2.15https://www.eclipse.org/forums/index.php/mv/msg/167506/537074/#msg_537074
Dani Ro2010-06-01T09:02:02-00:00Re: SWTBot and log4j 1.2.15https://www.eclipse.org/forums/index.php/mv/msg/167506/537077/#msg_537077
https://bugs.eclipse.org/bugs/show_bug.cgi?id=307076
I think you must add org.eclipsecon.swtbot.example to your dependencies with "Run / Run Configurations... / Plug-ins". I hope this helps]]>Dani Ro2010-06-01T09:11:46-00:00Re: SWTBot and log4j 1.2.15https://www.eclipse.org/forums/index.php/mv/msg/167506/537323/#msg_537323
a list of bundles which don't load up. Most often this happens because
of a missing dependency.

On 5/4/10 2:32 PM, paolizq@gmail.com wrote:
> Hello... I'm new to SWTBot and unfortunately I've been having a lot of
> problems trying to get it to work with my RCP application. I'm working
> under Eclipse 3.5 and my application has a dependency to log4j 1.2.15
> which is what seems to be causing the problems. I presume that is where
> the problem lies because when I set up the Run Configuration to use
> log4j 1.2.13, the unit test runs but fails because instead of loading
> the actual application I want to test, it opens a resource window.
> However, if I use the right version of log4j for my application, this is
> loaded but the unit test is unable to execute and throws a "No
> Classloader found for plug-in org.eclipsecon.swtbot.example":
>
> Exception in thread "WorkbenchTestable"
> java.lang.IllegalArgumentException: No Classloader found for plug-in
> org.eclipsecon.swtbot.example
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getCl
> assLoader(RemotePluginTestRunner.java:79)
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTe
> stClassLoader(RemotePluginTestRunner.java:73)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC
> lass(RemoteTestRunner.java:693)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC
> lasses(RemoteTestRunner.java:429)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe
> sts(RemoteTestRunner.java:452)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe
> sts(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R
> emoteTestRunner.java:390)
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(
> RemotePluginTestRunner.java:64)
> at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(U
> ITestApplication.java:117)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:71)
> at java.lang.Thread.run(Thread.java:619)
>
> Has anyone else had this kind of problem before or knows how this could
> be resolved?
>
> Thank you.]]>Ketan Padegaonkar2010-06-01T23:54:51-00:00Re: SWTBot and log4j 1.2.15https://www.eclipse.org/forums/index.php/mv/msg/167506/537324/#msg_537324
should instead be >=1.2.13. Could you open a bug ?

On 5/4/10 2:32 PM, paolizq@gmail.com wrote:
> Hello... I'm new to SWTBot and unfortunately I've been having a lot of
> problems trying to get it to work with my RCP application. I'm working
> under Eclipse 3.5 and my application has a dependency to log4j 1.2.15
> which is what seems to be causing the problems. I presume that is where
> the problem lies because when I set up the Run Configuration to use
> log4j 1.2.13, the unit test runs but fails because instead of loading
> the actual application I want to test, it opens a resource window.
> However, if I use the right version of log4j for my application, this is
> loaded but the unit test is unable to execute and throws a "No
> Classloader found for plug-in org.eclipsecon.swtbot.example":
>
> Exception in thread "WorkbenchTestable"
> java.lang.IllegalArgumentException: No Classloader found for plug-in
> org.eclipsecon.swtbot.example
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getCl
> assLoader(RemotePluginTestRunner.java:79)
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTe
> stClassLoader(RemotePluginTestRunner.java:73)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC
> lass(RemoteTestRunner.java:693)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC
> lasses(RemoteTestRunner.java:429)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe
> sts(RemoteTestRunner.java:452)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe
> sts(RemoteTestRunner.java:683)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R
> emoteTestRunner.java:390)
> at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(
> RemotePluginTestRunner.java:64)
> at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(U
> ITestApplication.java:117)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:71)
> at java.lang.Thread.run(Thread.java:619)
>
> Has anyone else had this kind of problem before or knows how this could
> be resolved?
>
> Thank you.]]>Ketan Padegaonkar2010-06-01T23:57:20-00:00