Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Activator issues
Activator issues [message #99143] Tue, 02 October 2007 11:44 Go to next message
Eclipse UserFriend
Originally posted by: slider161.hotmail.com

I am writing an Ant script to run a JUnit test suite within an Eclipse plug-in and generate a JUnit report outside of Eclipse. I am referring to this tutorial http://dev.eclipse.org/viewcvs/index.cg ... ision=1.4. I have written a test.xml file for my plug-in
which uses the org.eclipse.test library.xml file run the suite and generate a report.

I am getting an error "org.osgi.framework.BundleException: The activator com.propylon.core.tests.Activator for bundle com.propylon.core.Test is invalid".

Caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin

I am not using AbstractUIPlugin as an activator. I have set the Activator as org.eclipse.core.runtime.Plugin yet I still get the same error, Why?

Below is the manifest file for my plugin

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests Plug-in
Bundle-SymbolicName: com.propylon.core.Test;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.eclipse.core.runtime.Plugin
Bundle-Vendor: PROPYLON
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
com.propylon.core.repository,
org.eclipse.core.resources,
org.tmatesoft.svnkit,
org.eclipse.ui.navigator,
org.junit
Eclipse-LazyStart: true
Bundle-ClassPath: junit.plugin.jar,
.
Export-Package: com.propylon.core.tests,
junit.awtui,
junit.extensions,
junit.framework,
junit.runner,
junit.swingui,
junit.swingui.icons,
junit.textui
Re: Activator issues [message #99160 is a reply to message #99143] Tue, 02 October 2007 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: slider161.hotmail.com

I have tried using the "org.eclipse.core.runtime.Plugin" as the activator

"The activator org.eclipse.core.runtime.Plugin for bundle com.propylon.core.Test is invalid"

"Caused by: java.lang.InstantiationException"

I don't see why that is happening.

thank you for your time.

David
Re: Activator issues [message #99641 is a reply to message #99160] Fri, 12 October 2007 19:36 Go to previous message
Marco  Lehmann-Mörz is currently offline Marco Lehmann-MörzFriend
Messages: 53
Registered: July 2009
Member
David Cunningham schrieb:
> I have tried using the "org.eclipse.core.runtime.Plugin" as the activator

That class is abstract and can't be instantiated at runtime. You have to
use a concrete subclass.

>
> "The activator org.eclipse.core.runtime.Plugin for bundle com.propylon.core.Test is invalid"
>
> "Caused by: java.lang.InstantiationException"
>
> I don't see why that is happening.
>
> thank you for your time.
>
> David
Previous Topic:JSF sample
Next Topic:Re: [equinox-dev][monitoring] Making MXBean attributes automatically available while using org.eclip
Goto Forum:
  


Current Time: Fri Apr 26 11:01:13 GMT 2024

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

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

Back to the top