On Monday 04 June 2007 17:30, Vincent Coupe wrote: > Import-Service: demandeVideo.InterfaceTransfertVideo
Very unlikely that you will need this. If you are not sure that you need it, take it away. > DynamicImport-Package: demandeVideo, org.osgi.framework; > specification-version=1.1 DynamicImport is only recommended for special case, and I suspect that you would do just fine with Import-Package instead. No matter, org.osgi.framework should always be imported via Import-Package and not dynamic package. > Bundle-ManifestVersion: 2 When you do this, you trigger all the requirements of R4 Manifests. > Bundle-SymbolicName: bundlevideoclient correct. > But i got error : > -> Exception in thread "Thread-3" java.lang.ClassCastException: > InterfaceFournisseurVideoImpl.InterfaceTransfertVideoImp You have not provided enough information to know this for sure, but GutFeeling(tm) says that you have been relying on "Exported Packages are automatically Imported" which was the case in R3 (Oscar), and now requires explicit Import-Package. And if you then have the above class (or perhaps some of its superclass) loaded internally also is provided in some manner which has had its class loaded from another bundle exporting the same package. In R3, only one of the packages would be used, but this is not the case in R4, if you don't Import what you Export. Hope that helps. Cheers -- Niclas Hedhman, Software Developer I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug