Yes, the problem was the lack of the default constructor...
But now I've a new one...
Code:
09:02:06,234 - ERROR - [] - [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMapping' defined in class path resource [Spring-ServiceMappings.xml]: Can't resolve reference to bean 'urlMappingsFactoryBean' while setting property 'urlMap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsFactoryBean': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImpl' defined in class path resource [Spring-EntidadesBasicasServiceProxies.xml]: Can't resolve reference to bean 'mapeoServicioInstitucionServiceImplTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImplTarget' defined in class path resource [Spring-EntidadesBasicasServiceImpls.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy29] to required type [services.crud.AbstractCRUDService] for property 'servicioInstitucionCRUDService']
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlMappingsFactoryBean': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImpl' defined in class path resource [Spring-EntidadesBasicasServiceProxies.xml]: Can't resolve reference to bean 'mapeoServicioInstitucionServiceImplTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImplTarget' defined in class path resource [Spring-EntidadesBasicasServiceImpls.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy29] to required type [services.crud.AbstractCRUDService] for property 'servicioInstitucionCRUDService']
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImpl' defined in class path resource [Spring-EntidadesBasicasServiceProxies.xml]: Can't resolve reference to bean 'mapeoServicioInstitucionServiceImplTarget' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImplTarget' defined in class path resource [Spring-EntidadesBasicasServiceImpls.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy29] to required type [services.crud.AbstractCRUDService] for property 'servicioInstitucionCRUDService']
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapeoServicioInstitucionServiceImplTarget' defined in class path resource [Spring-EntidadesBasicasServiceImpls.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy29] to required type [services.crud.AbstractCRUDService] for property 'servicioInstitucionCRUDService']
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy29] to required type [services.crud.AbstractCRUDService] for property 'servicioInstitucionCRUDService'
at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:839)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:584)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:469)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:626)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:653)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1023)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1013)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.AbstractBeanFactory.getType(AbstractBeanFactory.java:342)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.isBeanTypeMatch(DefaultListableBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:144)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:198)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:192)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:608)
This is the new autoproxy configuration:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="logAutoProxyCreator"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="beanNames">
<value>*ServiceTarget, *ServiceImplTarget</value>
</property>
<property name="interceptorNames">
<idref bean="logAdvice" />
</property>
<property name="proxyTargetClass">
<value>true</value>
</property>
</bean>
</beans>
This the target configuration:
Code:
<bean id="mapeoServicioInstitucionServiceImplTarget" class="entidadesBasicas.services.impl.MapeoServicioInstitucionServiceImpl">
<property name="mapeoServicioInstitucionCRUDService">
<ref bean="entidadesBasicas.domain.MapeoServicioInstitucionCRUDService" />
</property>
<property name="aperturaProgramaticaCRUDService">
<ref bean="entidadesBasicas.domain.AperturaProgramaticaCRUDService" />
</property>
<property name="imputacionFisicaCRUDService">
<ref bean="entidadesBasicas.domain.ImputacionFisicaCRUDService" />
</property>
<property name="servicioInstitucionCRUDService">
<ref bean="tablasBasicas.ElementoBasicoCRUDService" />
</property>
</bean>
and this is the proxy configuration:
Code:
<bean id="mapeoServicioInstitucionServiceImpl"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="target">
<ref bean="mapeoServicioInstitucionServiceImplTarget" />
</property>
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="preInterceptors">
<list>
<ref bean="logAdvisor" />
<ref bean="exceptionAdvisor" />
<ref bean="dataAccessExceptionInterceptor" />
</list>
</property>
<property name="postInterceptors">
<list>
<ref
bean="entidadesBasicasBusinessServiceValidationAdvisor" />
</list>
</property>
<property name="transactionAttributes">
<props>
<prop key="mapear">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
Do you know how can I resolve it?
Thanks!!!!!!!
Leandro