Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
JCR OCM 2.0.4
-
None
-
None
Description
As described in
https://issues.apache.org/jira/browse/SLING-1064
i am using discriminator="true" in my class mapping strategy.
During insert of the object and discriminator property will be set the class org/objectweb/asm/Type is not found
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
at org.apache.jackrabbit.ocm.reflection.ReflectionUtils.isProxy(ReflectionUtils.java:194)
at org.apache.jackrabbit.ocm.reflection.ReflectionUtils.getBeanClass(ReflectionUtils.java:200)
at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.addDiscriminatorProperty(ObjectConverterImpl.java:237)
at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.insert(ObjectConverterImpl.java:214)
at org.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl.insert(ObjectConverterImpl.java:155)
at org.apache.jackrabbit.ocm.manager.impl.ObjectContentManagerImpl.insert(ObjectContentManagerImpl.java:406)
I checked the org.apache.sling.jcr.ocm pom file and found that there is cglib embedded and not asm.jar, not cglib-asm or cglib-nodeps.
There are some entries in the pom file for not importing packages of !org.objectweb.asm ....
But the asm.jar is not bundled.