I added a bean to my Spring daoContext.xml and I'm getting the following error message when the container tries to instantiate the bean.
org.springframework.beans.FatalBeanException: Could not instantiate class[myapp.dao.inventoryDao];
has class definition changed?
Is there a public no-arg constructor?;
nested exception is java.lang.IllegalAccessException:
Class org.springframework.beans.BeanUtils can not access a member of class myapp.dao.inventoryDao with modifiers "public"
I am not trying to set any properties. The definition is:
<bean id="inventoryDao" class="myapp.dao.inventoryDao" >
</bean>
There is a public no-arg constructor and the class file is current.
What is the error message referring to?


Reply With Quote