Travailler avec ressort, ci-dessous, le code de applicationContext-service.xml:problème applicationContext-service.xml définitions
<bean id="mediaObjectService" class="path.MediaObjectServiceImpl">
<property name="mediaObjectDao" >
<ref bean="mediaObjectDao"/>
</property>
<property name="semanticQuestionDao" >
<ref bean="semanticQuestionDao"/>
</property>
<aop:scoped-proxy/>
</bean>
Et tout en faisant un test, je reçois son erreur:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.mediaObjectService' defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
Comme je le sais, les objets de portée de session ont toujours un préfixe appelé scopedTarget.
au nom du bean-id.
Donc, si j'ai raison, mediaObjectService
est l'id-bean, qui est déclaré correctement.
Peut-être que je me trompe, mais de toute façon, je ne vois pas l'erreur que j'ai faite.
Une aide?
Merci à l'avance
J'utilise cette version cglib-2.1_3.jar –