Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

OSGi ClassNotFoundException despite using DynamicImport-Packages = *

 
Greenhorn
Posts: 27
  • 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
  • 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
 
Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!