• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!