I'm packaging a couple JMX MBeans inside a JBoss SAR file. However, when I try to introduce Spring (3.0.2.RELEASE) into the project by marking the class as @Configurable
and one of the dependencies as @Autowired
, I get the following error during deployment:
java.lang.ClassNotFoundException: org.springframework.beans.factory.aspectj.ConfigurableObject
I've tried both compile-time and load-time weaving, both give me this error. I've also confirmed that spring-aspects.jar is included as a dependency and is showing up in the SARs lib folder.
I'm also including these Spring dependencies:
- aspectjrt
- spring-core
- spring-context
- spring-aop
- spring-tx
What other gotchas do I need to worry about when mixing Spring, AspectJ, and SARs?