felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james yong <i_yon...@yahoo.com.sg>
Subject Re: Activator not found
Date Sat, 15 Dec 2007 16:59:38 GMT

Richard S. Hall wrote:
> 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

Hi Richard,

The activator can be found now when I add its package into the private
package definition.
However, those classes in the com.foo.osgi.window.text.model package that
are exported cannot be access by the activator.

java.lang.NoClassDefFoundError: com/foo/osgi/window/text/model/TextWindow
	at com.foo.osgi.window.text.Activator.start(Activator.java:28)
	at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
	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)

I have checked that the classes are in the bundle.

A part of the manifest file is as follow:

Export-Package: com.foo.osgi.window.text.model;uses:="org.apac
Private-Package: com.foo.osgi.window.text

Am I missing something? Let me know if you requires the bundle. Thanks.

View this message in context: http://www.nabble.com/Activator-not-found-tp14298496p14352620.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message