Arnaud

java.lang.NoClassDefFoundError: org/osgi/framework/BundleContext means :
The http://oscar-osgi.sf.net/repo/simple/simple.jar manifest does not import package org.osgi.framework
The Oscar CL is permissive than Felix for this package

To test natives for Windows, you can have a look on those bundles (if you have a serial port)
http://www-adele.imag.fr/users/Didier.Donsez/dev/osgi/rxtx/
http://www-adele.imag.fr/users/Didier.Donsez/dev/osgi/rxtxcmd

and the commands to launch http://www-adele.imag.fr/users/Didier.Donsez/dev/osgi/script/rxtx.txt

Didier

Arnaud Quiblier wrote:

Well, java-svn-maven2-eclipse-felix are now installed on my box ... ;-)
Launch Felix, all is OK.
Download Simple Bundle from Oscar Bundle Repository.
Copy it to the bundle directory ... and launch Felix.
Starting the Simple Bundle fails ...

[...]
DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 1.0
-> install file:bundle/simple.jar     <<< install Simple Bundle
-> ps     <<< get bundle id
START LEVEL 1
  ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (0.8.0.SNAPSHOT)
[   1] [Active     ] [    1] ShellService (0.8.0.SNAPSHOT)
[   2] [Active     ] [    1] ShellTUI (0.8.0.SNAPSHOT)
[   3] [Active     ] [    1] BundleRepository (0.8.0.SNAPSHOT)
[   4] [Installed  ] [    1] Simple (1.0.0)
-> start 4     <<< start Simple Bundle
org.osgi.framework.BundleException: Activator start error.
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1261)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1149)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:326)
       at org.apache.felix.shell.impl.StartCommandImpl.execute(
StartCommandImpl.java:80)
       at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(
Activator.java:263)
       at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(
Activator.java:165)
       at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError: org/osgi/framework/BundleContext
       at org.ungoverned.osgi.bundle.simple.SimpleBundle.start(
SimpleBundle.java:58)
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1216)
       ... 6 more
java.lang.NoClassDefFoundError: org/osgi/framework/BundleContext
->

Any idea ? I continue my hack ...
Does anybody use Felix with native libs ?



--
---------------------------------------------------------
Didier DONSEZ
Laboratoire LSR, Institut Imag, Universite Joseph Fourier
Bat. C, 220 rue de la Chimie, Domaine Universitaire
BP 53, 38041 Grenoble Cedex 9, France
GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m
http://www-adele.imag.fr/users/Didier.Donsez/map/map.html
Tel : +33 4 76 63 55 49           Fax : +33 4 76 63 55 50
mailto:[EMAIL PROTECTED]
URL: http://www-adele.imag.fr/users/Didier.Donsez
---------------------------------------------------------


Reply via email to