I did not extend from my mapped classes from AbstractMappedObject to use
discriminator ="true".
Now i got the problem that during insert and adding discriminator
property 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 cglib-asm or cglib-nodeps.
Could someone please help and tell me if there is a special reason for
that ?
And also why AbstractMappedObject has discriminator false ?
Do you prefer different usage within sling ?
Markus
Markus Pallo wrote:
I am trying to use sling.ocm and started extending my classes from
AbstractMappedObject.
After inserting my objects, the nodes do not have ocm_classname
attribute.
So i expect its because AbstactMappedObject has "discriminator=false"
and its not possible to overwrite these tag.
Is there a special reason why AbstractMappedObject has
discriminator=false.
Markus
--
------------------------------------------------------------------
DIG Digitale Medienberatungs-
und Produktions- GmbH
Neckarstr. 1/5
78727 Oberndorf a. N.
Amtsgericht Stuttgart HRB 480914
Geschäftsführer: Carsten Huber
------------------------------------------------------------------
Tel: +49 (0)7423 8750 60
Fax: +49 (0)7423 8750 23
Internet: http://www.dig.de
eMail: [email protected]
Ein Unternehmen der Schwarzwälder Bote Mediengruppe