AnsweredAssumed Answered

erreur d'ajout de modele

Question asked by yassine_036 on May 27, 2009
bonjour
j'ai un problème avec le déploiement d'un exemple, dans cet exemple il y a la création d'un nouveau bean il est bien défini et il est place dans le bon fichier
j'ai résolu quelques erreurs mais ça continue toujours je ne sais pas pourquoi
la derniere fois tomcat n'arrivait à trouver la classe logger qui se trouve dans le jar log.jar alors j'ai rajouté les jar (log.jar + repository) dans le fichier lib de tomcat et là j'ai une grande d'erreur qui s'affiche lors du démarrage d'alfresco
GRAVE: Exception lors de l'envoi de l'événement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ratingBehavior' defined in file [C:\Alfresco\tomcat\shared\classes\alfresco\extension\someco-model-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (3) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy7] to required type [org.alfresco.service.cmr.repository.NodeService] for property 'nodeService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7] to required type [org.alfresco.service.cmr.repository.NodeService] for property 'nodeService': no matching editors or conversion strategy found
PropertyAccessException 2: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.alfresco.repo.policy.PolicyComponentImpl] to required type [org.alfresco.repo.policy.PolicyComponent] for property 'policyComponent'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.alfresco.repo.policy.PolicyComponentImpl] to required type [org.alfresco.repo.policy.PolicyComponent] for property 'policyComponent': no matching editors or conversion strategy found
PropertyAccessException 3: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.alfresco.repo.transaction.TransactionServiceImpl] to required type [org.alfresco.service.transaction.TransactionService] for property 'transactionService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.alfresco.repo.transaction.TransactionServiceImpl] to required type [org.alfresco.service.transaction.TransactionService] for property 'transactionService': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (3) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy7] to required type [org.alfresco.service.cmr.repository.NodeService] for property 'nodeService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7] to required type [org.alfresco.service.cmr.repository.NodeService] for property 'nodeService': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7] to required type [org.alfresco.service.cmr.repository.NodeService] for property 'nodeService': no matching editors or conversion strategy found
   at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
   at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
   at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:815)
   at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)
   at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
   at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1126)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

merci d'avance pour votre aide
cordialement

Outcomes