Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Test » Eclipse plug-in: Invalid Activator
Eclipse plug-in: Invalid Activator [message #561390] Thu, 27 September 2007 14:34
Eclipse UserFriend
Originally posted by:

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 ... 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

I have checked that all the require plug-ins are loaded in eclipse.
The Activator class autmatically generated when i created the plug-in,
yet it seems ok.
the manifest file seem to be correct.

Are there any other common causes for this error, and what are they?

Below is my Activator class.


package com.propylon.core.tests;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

* The activator class controls the plug-in life cycle
public class Activator extends AbstractUIPlugin {

// The plug-in ID
public static final String PLUGIN_ID = "com.propylon.core.tests";

// The shared instance
private static Activator plugin;

* The constructor
public Activator() {

* (non-Javadoc)
* @see
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framew ork.BundleContext)
public void start(BundleContext context) throws Exception {
plugin = this;

* (non-Javadoc)
* @see
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framewo rk.BundleContext)
public void stop(BundleContext context) throws Exception {
plugin = null;

* Returns the shared instance
* @return the shared instance
public static Activator getDefault() {
return plugin;


Below is the Manifest file


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: TestsPlug-in
Bundle-SymbolicName: com.propylon.core.Test;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.propylon.core.tests.Activator
Bundle-Vendor: PROPYLON
Require-Bundle: org.eclipse.ui,
Eclipse-LazyStart: true
Bundle-ClassPath: junit.plugin.jar,
Export-Package: com,
com.propylon.core.tests.testsuite,;x-internal :=true,;x- internal:=true,;x-i nternal:=true,; x-internal:=true,; x-internal:=true,;x-int ernal:=true,

Are there any obvious flawes with my code that my be causing the problem?

thank you for your time.


P.S. I am new to this newsgroup, and apologise if this post is in the
wrong forum.
Previous Topic:AGR
Next Topic:Eclipse plug-in: Invalid Activator
Goto Forum:

Current Time: Sat Nov 28 18:30:37 GMT 2015

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

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