This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OSGi ClassNotFoundException despite using DynamicImport-Packages = *

 
kato Kwong
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic