I bet you are not running the Unit Test cases under OSGi platform.
May consult the following source to run your test case under Karaf container. http://karaf.apache.org/manual/latest-2.3.x/developers-guide/writing-tests.h tml For your problem, I guess the Berkely DB driver cannot load the classes you created. For your case, may take the following steps: 1. Firstly, find out which bundles the Berkely DB driver and the dependencies are. 2. Secondly, type the following command to enable "Dynamic Imports" for Berkely DB driver bundle and the dependency bundle(s) > dev:dynamic-import <bundle id> try the main Berkely DB driver bundle first. If it doesn't work, try to enable "Dynamic Imports" for the other dependency bundles. Best Rgds, Tom From: Clement Jebakumar [mailto:[email protected]] Sent: Saturday, August 10, 2013 4:23 AM To: [email protected] Subject: Using Berkeley DB in Karaf Hi All, I am getting the below exception when using the Berkely DB in a bundle. Caused by: com.sleepycat.persist.evolve.IncompatibleClassException: Mutation is missing to evolve class:warehouse.core.urldb.Host version: 0 Error: java.lang.ClassNotFoundException: warehouse.core.urldb.Host not found by com.springsource.com.sleepcat.je [62] at com.sleepycat.persist.impl.PersistCatalog.<init>(PersistCatalog.java:365)[62 :com.springsource.com.sleepcat.je:3.3.87] at com.sleepycat.persist.impl.Store.<init>(Store.java:180)[62:com.springsource. com.sleepcat.je:3.3.87] at com.sleepycat.persist.EntityStore.<init>(EntityStore.java:165)[62:com.spring source.com.sleepcat.je:3.3.87] at warehouse.core.urldb.SeedDatabase.lunch(SeedDatabase.java:40)[60:declum-squz er-core:1.0.0.qualifier] I have testcases wihch is running fine when i do mvn install. But i am not able to start the bundle in karaf console. what could be the reason for it? After deleting the database file also, the exception is thrown. - Clement
