Hi, by using Spring MVC with hibernate... i get the following error
Code:
Error creating bean with name 'postProfileService'
defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]:
Cannot create inner bean 'com.jobpost.postprofile.PostProfileService#1537060' while setting bean property 'target';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.jobpost.postprofile.PostProfileService#1537060'
defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Error setting property values;
My xml file
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="txProxyTemplate" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager"><ref bean="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="add*">PROPAGATION_REQUIRED</prop>
<prop key="remove*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="postProfileService" parent="txProxyTemplate">
<property name="target">
<bean class="com.jobpost.postprofile.PostProfileService">
<property name="postProfilesDao"> <ref bean="PostProfilesDAO" /></property></bean>
</property>
</bean>
</beans>