I have a problem running a osgi bundle that has compile time weaving with aspjectj. I am using the eclipse aspectj plugin, when I add AspectJ compatibility it automatically saves the aspectj file in required plug-ins.
When I remove the aspectj capability the bundles runs just fine, but when the aspect is enable it crashes when I start equinox. This is the error message:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'carDaoService': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [java.lang.Class] for property 'interfaces'; nested exception is java.lang.IllegalArgumentException: Cannot find class [springdm.demo.dao.CarDao]
please let me know if you need more information to understand why it crashes.
After a bit more investigation it seems that eclipse does not create the .class file at all, even though everything seems fine in the IDE. Any ideas?