servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Created] (SMX4-1395) EHCache bundle should include the META-INF/services so the ServiceLoader works
Date Wed, 06 Mar 2013 11:04:13 GMT
Claus Ibsen created SMX4-1395:

             Summary: EHCache bundle should include the META-INF/services so the ServiceLoader
                 Key: SMX4-1395
             Project: ServiceMix 4
          Issue Type: Bug
          Components: Bundles
            Reporter: Claus Ibsen

This file is missing in the bundle JAR

Which causes the bundle to NOT work in OSGi at all. 

013-03-06 11:52:13,095 | WARN  | (3)- | OsgiDefaultCamelContext          | e.camel.impl.DefaultCamelContext
1763 | 68 - org.apache.camel.camel-core - 2.11.0.SNAPSHOT | Error occurred while shutting
down service: Endpoint[cache://foo]. This exception will be ignored.
net.sf.ehcache.CacheException: java.lang.AssertionError: No net.sf.ehcache.EhcacheInit services
	at net.sf.ehcache.LibraryInit.init([88:org.apache.servicemix.bundles.ehcache:]
	at net.sf.ehcache.CacheManager.init([88:org.apache.servicemix.bundles.ehcache:]
	at net.sf.ehcache.CacheManager.<init>([88:org.apache.servicemix.bundles.ehcache:]
	at net.sf.ehcache.CacheManager.newInstance([88:org.apache.servicemix.bundles.ehcache:]
	at net.sf.ehcache.CacheManager.newInstance([88:org.apache.servicemix.bundles.ehcache:]
	at net.sf.ehcache.CacheManager.create([88:org.apache.servicemix.bundles.ehcache:]
	at org.apache.camel.component.cache.DefaultCacheManagerFactory.createCacheManagerInstance([90:org.apache.camel.camel-cache:2.11.0.SNAPSHOT]
	at org.apache.camel.component.cache.CacheManagerFactory.getInstance([90:org.apache.camel.camel-cache:2.11.0.SNAPSHOT]

I manually added that META-INF/services file to the bundle, and then it worked in OSGi.

For example the camel/tests/camel-itest-osgi now works fine.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message