[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] servletbridge activator ClassNotFound exception

Hi all, I've been trying to get a simple BundleActivator to work with
the servlet bridge and equinox under Tomcat.

I get a CNFE although my activator has no code in it and does not
reference any other classes other then the BundleActivator interface and
the BundleContext.

I was able to run this same bundle with the activator in the normal
Equinox Run Configuration with success, but when I try and run it
through the servlet bridge on Tomcat I get the CNFE.

My Manifest has the following key entries:
Bundle-Activator: com.railinc.example.activator.HelloNoSpringActivator
Import-Package: com.railinc.example.hello,
 org.osgi.framework;version="1.3.0"

(Note the imported com.railinc.example.hello is in another bundle that I
have installed and started)

My bundle status is the following:
Framework is launched.

id	State       Bundle
0	ACTIVE      system.bundle_3.2.2.R32x_v20070118
	            Fragments=10
1	ACTIVE      org.eclipse.equinox.common_3.2.0.v20060603
2	ACTIVE      org.eclipse.update.configurator_3.2.2.R32x_v20070111
3	ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.0.200704022148
4	ACTIVE      org.eclipse.equinox.http.registry_1.0.0.200704022148
8	ACTIVE      org.eclipse.equinox.http.servlet_1.0.0.200704022148
9	ACTIVE      org.eclipse.equinox.registry_3.2.1.R32x_v20060814
10	RESOLVED
org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
	            Master=0
11	RESOLVED    org.eclipse.osgi.services_3.1.100.v20060601
14	ACTIVE      HelloWorld_1.0.0
23	RESOLVED    HelloNoSpring_1.0.1

And when I run diag 23 it says all dependencies are resolved.

My Bundle Activator as I said above has no code in it and looks like
this:
package com.railinc.example.activator;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class HelloNoSpringActivator implements BundleActivator {

	public void start(BundleContext context) throws Exception {
		/*System.out.println("Starting HelloNoSpring");
		HelloWorld helloWorld = new HelloWorldImpl();
		helloWorld.sayHello();*/
	}

	public void stop(BundleContext context) throws Exception {
		//System.out.println("Stopping HelloNoSpring");
	}
}

I am running this in EasyEclipse 1.2.2.2 Server Java bundle with 1.5 JDK
and Tomcat 5.5.  Any help is greatly appreciated.

Thanks,

John