Skip to main content

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

John,
I'd crack open your bundle on disk. It sounds like you're either missing the Activator.class from your bundle or else your Bundle-Classpath doesn't point at your classes.

HTH
-Simon

----- Original Message ----- From: "McGinn, John" <john.mcginn@xxxxxxxxxxx>
To: <equinox-dev@xxxxxxxxxxx>
Sent: Monday, May 12, 2008 11:21 AM
Subject: [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
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top