posted 16 years ago
Hi,
I m trying to connect database from my spring application and getting below exception :
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uriMapping' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginActionController' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Cannot resolve reference to bean 'projectService' while setting bean property 'projectService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectService' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'projectDAO' of bean class [com.zensar.ergts.service.impl.ProjectServiceImpl]: Bean property 'projectDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginActionController' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Cannot resolve reference to bean 'projectService' while setting bean property 'projectService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectService' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'projectDAO' of bean class [com.zensar.ergts.service.impl.ProjectServiceImpl]: Bean property 'projectDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectService' defined in ServletContext resource [/WEB-INF/ergts-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'projectDAO' of bean class [com.zensar.ergts.service.impl.ProjectServiceImpl]: Bean property 'projectDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'projectDAO' of bean class [com.zensar.ergts.service.impl.ProjectServiceImpl]: Bean property 'projectDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Can any one please help me out. Any Pointers would be a great help.
Thanks in Advance,
Sumeet Gupta