Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE Automated Testing Classloader problem
PDE Automated Testing Classloader problem [message #576847] Mon, 18 August 2008 21:36
Mike is currently offline MikeFriend
Messages: 49
Registered: July 2009
Member
I am working on setup up automated build and testing. I am following the
example outlined here:
http://www.eclipse.org/articles/article.php?file=Article-PDE JUnitAntAutomation/index.html
but am running into a no Classloader error, when the
org.eclipse.pde.junit.runtime.coretestapplication (in the following ant
command):

<java dir="${plugin.dir}" classname="org.eclipse.equinox.launcher.Main"
fork="yes" classpathref="equinox.launcher.class.path">
<arg
line="-application org.eclipse.pde.junit.runtime.coretestapplication
-debug -clean -data ${build.output.dir} -dev bin -port ${pde.test.port}
-testpluginname ${tested.plugin.name} -classnames ${test.classes.list}" />
</java>


Here is the error from the configuration log file,
java.lang.IllegalArgumentException: No Classloader found for plug-in {my
plugin name}
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.getClassLoader(RemotePluginTestRunner.java:73)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.getTestClassLoader(RemotePluginTestRunner.java:67)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lass(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadC lasses(RemoteTestRunner.java:425)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:445)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(RemotePluginTestRunner.java:58)
at
org.eclipse.pde.internal.junit.runtime.CoreTestApplication.r un(CoreTestApplication.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:572)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:171)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

I have looked around and haven't been able to fix it. Does anyone know
what might be cuaseing this? And more importantly how to correct it?

-Mike
Previous Topic:PDE Automated Testing Classloader problem
Next Topic:Finding the Plugins directory
Goto Forum:
  


Current Time: Fri Apr 26 14:54:04 GMT 2024

Powered by FUDForum. Page generated in 0.03080 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top