packageToScan me marca como error en el editor (uso STS) :
Cita: Attribute : name
The name of the property, following JavaBean naming conventions.
y en la consola:
Cita: Caused by: org.springframework.beans.NotWritablePropertyExcep tion: Invalid property 'packagesToScan' of bean class [org.springframework.orm.hibernate3.LocalSessionFac toryBean]: Bean property 'packagesToScan' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:1012)
at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:857)
at org.springframework.beans.AbstractPropertyAccessor .setPropertyValues(AbstractPropertyAccessor.java:76)
at org.springframework.beans.AbstractPropertyAccessor .setPropertyValues(AbstractPropertyAccessor.java:58)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1338)
... 63 more
Justamente comenté de dicho error en el mensaje anterior.