Here is a summary of the problems I have had and their resolution. I am stuck with an issue of CXF not working when I enable aspect. Details below:
1. NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException a. This was resolved by installing the aspect bundles and refreshing Spring AOP after they were installed. The key here was to refresh the Spring AOP bundle. 2. Dynamic proxy issue a. Resolved by using <aop:aspectj-autoproxy proxy-target-class="true"/> before doing (1), but the issue didn't appear after (1) and I was able to remove that configuration. 3. Any bundle that uses the org.apache.cxf.bundle now fails after doing step (1) with the following error: NoClassDefFoundError: org/springframework/beans/factory/support/ManagedSet. This happens when loading the META-INF/cxf/cxf.xml file. I removed the jaxrs code from my hibernate/aop code and deployed them in different bundles. Once I did this, I got the hibernate/aop code working right away after doing step (1). Of course, this same step then broke my jaxrs bundle. I am stuck because I need to both and I can't get them working together. The org.apache.cxf.bundle has org.springframework.beans.factory.support as optional in the manifest, so I tried to refresh it, but to no avail. It did not resolve all of the optional packages and put them in import-package. I even tried to building the cxf bundle myself and changing the import-package logic in the pom.xml. This didn't work either, but I might have done something wrong. Does anyone have any other ideas? I am stuck on this one. Thanks, Jason
