jmkgreen/morphia — pull request #62 by alepar (2013-04-17 08:37:39+00:00)
Title: if cglib is present, but it's dependencies are missing (ie asm) - instantiating Morphia class will fail

Got this when cglib was present on classpath, but asm missing:

```
java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.testDependencyFullFilled(LazyFeatureDependencies.java:32)
at com.google.code.morphia.mapping.lazy.LazyFeatureDependencies.createDefaultProxyFactory(LazyFeatureDependencies.java:44)
at com.google.code.morphia.mapping.Mapper.(Mapper.java:96)
at com.google.code.morphia.Morphia.(Morphia.java:47)
at com.google.code.morphia.Morphia.(Morphia.java:43)
at xol.logcheck.dao.DaoProvider$Factory.createDatastore(DaoProvider.java:38)
at xol.logcheck.dao.DaoProvider$Factory.createTest(DaoProvider.java:31)
at xol.logcheck.dao.TraceDaoTest.(TraceDaoTest.java:79)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner.runTestSuite(JUnitTestSuiteRunner.java:520)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner.doRun(JUnitTestSuiteRunner.java:334)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner.access$000(JUnitTestSuiteRunner.java:45)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner$1TestsExecutor.run(JUnitTestSuiteRunner.java:305)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner.run(JUnitTestSuiteRunner.java:321)
at com.db.xol.junit.testsSuite.JUnitTestSuiteRunner.main(JUnitTestSuiteRunner.java:149)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
```