First, it is probably not a good idea to have your activator in a
package that you export, since this is unlikely to be part of your
public API. Regarding the CNFE, I am not sure. If you look in your
bundle, is that class actually there?
You could send me your bundle privately and I could take a look at it.
-> richard
james yong wrote:
Hi,
I encounter the following error when starting felix.
ERROR: Error starting
file:C:/workspace/ApacheWelo/bundle/com.foo.osgi.window.text_1.0.0.jar
(org.osgi.framework.BundleException: Not found:
com.foo.osgi.window.text.Activator)
java.lang.ClassNotFoundException: com.foo.osgi.window.text.Activator
at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3429)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1531)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
at java.lang.Thread.run(Unknown Source)
Any idea?
I do export the packge
Export-Package: com.foo.osgi.window.text
and set
Bundle-Activator: com.foo.osgi.window.text.Activator
The bundle is created with bnd.
Regards,
James
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]