Have you tried wrapping cglib inside your actual application bundle with it on the BundleClasspath? ie. not in a separate bundle. And embedding it using (Embed-Dependency). Or you can import all of the cglib library (using Private-Import) and ensure that the package shows in the bundle/jar.
–
Tony DayNov 24 '11 at 8:48

Also, if you have multiple bundles, ensure that the actual bundle that needs cglib is importing it. I made this mistake recently with an Hibernate bundle and a database driver (see stackoverflow.com/questions/8013205/…). I think its easy to get confused when you're used to Java's standard class loading.
–
Tony DayNov 24 '11 at 8:55

1 Answer
1

I resolved this in by creating a separate bundle containing Spring and all the required dependencies. I then had to add Eclipse-Buddy classloading between my client code and the spring bundle so that it could load my config classes.