Error Description:
Context initialization failed
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Userdao ' defined in class path re SOURCE [Applicationcontext.xml]: Initialization of Bean failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Txadvice ': Cannot resolve reference to the bean ' txmanager ' while the setting bean property ' TransactionManager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Txmanager ' Defined in class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is org.springframework.beans.PropertyBatchUpdateException; Nested propertyaccessexceptions (1) are:
Propertyaccessexception 1:org.springframework.beans.typemismatchexception:failed to convert property value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory ': no matching editors or conversion strategy found
Caused by:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Txadvice ': cannot resolve Reference to Bean ' txmanager ' while the setting bean property ' TransactionManager '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Txmanager ' Defined in class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is org.springframework.beans.PropertyBatchUpdateException; Nested propertyaccessexceptions (1) are:
Propertyaccessexception 1:org.springframework.beans.typemismatchexception:failed to convert property value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory ': no matching editors or conversion strategy found
Caused by:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Txmanager ' defined in class path Resource [Applicationcontext.xml]: Error setting property values; Nested exception is org.springframework.beans.PropertyBatchUpdateException; Nested propertyaccessexceptions (1) are:
Propertyaccessexception 1:org.springframework.beans.typemismatchexception:failed to convert property value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory '; Nested exception is Java.lang.IllegalArgumentException:Cannot convert value of type [ Org.springframework.orm.hibernate3.HibernateTransactionManager] to required type [org.hibernate.SessionFactory] for Property ' Sessionfactory ': no matching editors or conversion strategy found
Caused by:
Error Reason:
Transaction configuration error in spring configuration file:
<bean id= "Sessionfactory"
class= "Org.springframework.orm.hibernate3.LocalSessionFactoryBean" >
<property name= "Configlocation"
Value= "Classpath:hibernate.cfg.xml" >
</property>
</bean>
<bean id= "Txmanager" class= "Org.springframework.orm.hibernate3.HibernateTransactionManager"
<property name= "Sessionfactory" ref= "Txmanager" ></PROPERTY>
should be:
<bean id= " Txmanager "class=" "Org.springframework.orm.hibernate3.HibernateTransactionManager"
< Property Name= "Sessionfactory" ref= "Sessionfactory" ></PROPERTY>
</bean>
</ Bean>