Olivier, I did have a look at the OSGI integration and it seems a new class has been added (EnterpriseFeaturesManager) since the switch to 2.6.0. It seems to be loaded through Class.forName which will fail in OSGI (I don't know how this is working for OffHeadStore before I think the best way to fix it in OSGI is to declare DirectMemory Ehcache integration as a fragment (of ehcache) and not as a bundle which it is from the functional point of view because it patches Ehcache classes. I will have a look at the Maven bundle plugin to see if this is possible.
Jeff On Sun, Jun 23, 2013 at 1:11 PM, Olivier Lamy <[email protected]> wrote: > was ok before I upgrade to ehcache 2.6.6 > > > 2013/6/23 Jeff MAURY <[email protected]>: > > Olivier, > > > > > > I'm wondering if the test has already been successful because I don't > understand how the ehcache bundle can load a class from the DirecMemory > bundle ? > > > > > > Jeff > > > > — > > Sent from Mailbox for iPhone > > > > On Sat, Jun 22, 2013 at 3:38 PM, Olivier Lamy <[email protected]> wrote: > > > >> Hi Folks, > >> If an osgi expert can fix that, I will appreciate a lot :-) > >> I don't understand the failure reason. > >> Thanks in advance > >> -- > >> Olivier > >> 2013/6/22 <[email protected]>: > >>> Author: olamy > >>> Date: Sat Jun 22 13:36:25 2013 > >>> New Revision: 1495729 > >>> > >>> URL: http://svn.apache.org/r1495729 > >>> Log: > >>> disable osgi test as for some reasons they fail, sorry I prefer > writing code rather than waste time writing osgi metadatas > >>> > >>> Modified: > >>> directmemory/trunk/itests/pom.xml > >>> > >>> Modified: directmemory/trunk/itests/pom.xml > >>> URL: > http://svn.apache.org/viewvc/directmemory/trunk/itests/pom.xml?rev=1495729&r1=1495728&r2=1495729&view=diff > >>> > ============================================================================== > >>> --- directmemory/trunk/itests/pom.xml (original) > >>> +++ directmemory/trunk/itests/pom.xml Sat Jun 22 13:36:25 2013 > >>> @@ -30,8 +30,11 @@ under the License. > >>> <name>Apache DirectMemory :: Integration Tests</name> > >>> <description>${project.name}</description> > >>> > >>> + <!-- > >>> + olamy: currently this fail as ehcache fail to load the class > net.sf.ehcache.EnterpriseFeaturesManager > >>> + their ClassLoaderUtil use Class.forName maybe one of the reason > >>> <modules> > >>> <module>osgi</module> > >>> </modules> > >>> - > >>> + --> > >>> </project> > >>> \ No newline at end of file > >>> > >>> > >> -- > >> Olivier Lamy > >> Ecetera: http://ecetera.com.au > >> http://twitter.com/olamy | http://linkedin.com/in/olamy > > > > -- > Olivier Lamy > Ecetera: http://ecetera.com.au > http://twitter.com/olamy | http://linkedin.com/in/olamy > -- Jeff MAURY "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury
