Eclipse 4.4.4.4 Plug-in ClassNotFoundException

26 views
Skip to first unread message

Al

unread,
Jan 17, 2006, 1:04:23 PM1/17/06
to testng...@googlegroups.com
Hello,

Running Eclipse 3.1.1 and just dropped the TestNG Eclipse plug-in into the plug-ins directory and restarted and when trying to show the TestNG view, I get the following stack trace:

java.lang.ClassNotFoundException: org.testng.eclipse.ui.TestRunnerViewPart
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:99)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:267)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1655)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:937)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:920)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3199)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3196)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3174)
at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:146)
at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:102)
at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:70)
at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:113)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

Previous to trying it with 3.1.1, I tried it with 3.1RC1 and got the same error. The error is in/on the Eclipse TestNG View, and nothing else is on the view panel.

Also, and a side question, I tried changing the lib the plugin.xml file points to from the JDK1.4 version to the 1.5 version to no avail. I'm developing with 1.5, so should I changed that?

Please advise.
Al

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=14724&messageID=28894#28894

Cédric Beust ♔

unread,
Jan 17, 2006, 1:07:50 PM1/17/06
to testng...@googlegroups.com
Hi Al,

Can you please try the current version from the update site (4.4.4.9) and let me know if it works better?

If not, can you please try with a clean installation of Eclipse?

--
Cedric


On 1/17/06, Al <testng...@opensymphony.com> wrote:

Hello,

Running Eclipse 3.1.1 and just dropped the TestNG Eclipse plug-in into the plug-ins directory and restarted and when trying to show the TestNG view, I get the following stack trace:

java.lang.ClassNotFoundException : org.testng.eclipse.ui.TestRunnerViewPart
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:350)

        at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass (BundleLoader.java:275)

        at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension (ConfigurationElement.java:142)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
        at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension (ConfigurationElementHandle.java:48)

        at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
        at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:99)
        at org.eclipse.ui.internal.ViewReference.createPartHelper (ViewReference.java:267)

        at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
        at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1655)
        at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:937)
        at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java :920)
        at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3199)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.WorkbenchPage.showView (WorkbenchPage.java:3196)

        at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3174)
        at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:146)
        at org.eclipse.ui.handlers.ShowViewHandler.openOther (ShowViewHandler.java:102)

        at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:70)
        at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:113)
        at org.eclipse.jface.action.Action.runWithEvent (Action.java:996)

        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java :488)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent (Widget.java:843)

        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
        at org.eclipse.ui.internal.Workbench.runEventLoop (Workbench.java:1699)

        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:143)

        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
        at org.eclipse.core.launcher.Main.run (Main.java:973)

        at org.eclipse.core.launcher.Main.main(Main.java:948)



Previous to trying it with 3.1.1, I tried it with 3.1RC1 and got the same error.  The error is in/on the Eclipse TestNG View, and nothing else is on the view panel.

Also, and a side question, I tried changing the lib the plugin.xml file points to from the JDK1.4 version to the 1.5 version to no avail.  I'm developing with 1.5, so should I changed that?

Please advise.
Al

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=14724&messageID=28894#28894




--
Cédric

Al

unread,
Jan 17, 2006, 3:08:29 PM1/17/06
to testng...@googlegroups.com
Cedric,

I get an HTTP 404 error when trying to download the 4.4.4.9 zip file. Our development is on a secure separate network, so I can't use the Eclipse Update function.

Al

> Hi Al,
>
> Can you please try the current version from the
> update site (4.4.4.9) and
> let me know if it works better?
>
> If not, can you please try with a clean installation
> of Eclipse?
>
> --
> Cedric
>
>

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=14724&messageID=28925#28925

Cédric Beust ♔

unread,
Jan 17, 2006, 3:24:29 PM1/17/06
to testng...@googlegroups.com
Try this:

http://testng.org/testng-eclipse-4.4.4.9.zip

I just tested it, it worked for me (but it wasn't before, so you were right).

--
Cedric


On 1/17/06, Al <testng...@opensymphony.com> wrote:



--
Cédric

Al

unread,
Jan 17, 2006, 6:55:48 PM1/17/06
to testng...@googlegroups.com
The update fixed it.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=14724&messageID=28996#28996

Reply all
Reply to author
Forward
0 new messages