On 13/12/2007, james yong <[EMAIL PROTECTED]> 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?


things to check (which you've probably already done, but just in case) ...

  use 'jar tvf <bundle-file>' to make sure the Activator class is really
inside

  in Felix, use 'headers <bundle-id>' to verify the OSGi headers are there
and are correct

  try commenting out any static code or members from the Activator (in case
the class is failing to load)

as Richard mentioned, using that Export-Package setting should have included
your classes in the bundle

if you're still stuck then post the output from 'jar tvf' and the bundle
headers to this list and I'll take a look
(also if you can recreate this with a simple project then feel free to send
it as a zip to me directly to check)

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
> --
> View this message in context:
> http://www.nabble.com/Activator-not-found-tp14298496p14298496.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to