wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes OSGi ClassNotFoundException despite using DynamicImport-Packages = * Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "OSGi ClassNotFoundException despite using DynamicImport-Packages = *" Watch "OSGi ClassNotFoundException despite using DynamicImport-Packages = *" New topic
Author

OSGi ClassNotFoundException despite using DynamicImport-Packages = *

kato Kwong
Greenhorn

Joined: Sep 23, 2011
Posts: 27
Hi,

I am using ehcache 2.5.1 to cache my objects. I've deployed on ServiceMix 4.3.

I am using the ServiceMix bundle version of Ehcache, which has the headers set as follows



I have made sure that my bundle exports the offending package:


And yet I still get the runtime error:



What am I missing?

cheers,
Kato
kato Kwong
Greenhorn

Joined: Sep 23, 2011
Posts: 27
For anyone interested, turns out this is a bug in the manifest header of the org.apache.servicemix.bundles.ehcache bundle.

The DynamicImport-Packages = * is not a valid OSGi header, it should be: DynamicImport-Package = *

A small but significant difference.

This has been tested by manually adjusting the header whilst waiting for a fixed version.

https://issues.apache.org/jira/browse/SMX4-1303

Kato
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OSGi ClassNotFoundException despite using DynamicImport-Packages = *