Hi all, I've posted this question here because it involves org.apache.servicemix.bundles, maybe is it a topic that better fit the Karaf user mailing list?
thank you! Cristiano 2014/1/8 Cristiano Costantini <[email protected]> > Hi All, > I've made an application by defining a feature called "springsec": > > https://github.com/cristcost/springsec/blob/master/src/main/resources/features.xml > > I install the application on servicemix 4.5.3 where I define to launch the > feature at boot > (featuresBoot=karaf-framework,config,activemq-broker,activemq-spring,saaj,cxf-specs,camel,activemq-camel,camel-cxf,camel-blueprint,war,webconsole,springsec). > > as you can see, my feature has add the bundle > "mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/${smx-aspectj.version}" > which is required for resolving org.aspectj.* optional imports of the > bundle org.springframework.aop (see its imports here > https://gist.github.com/cristcost/8313004) > > The problem is that even if I define to add my feature at boot, > org.springframework.aop starts without resolving the optional imports, and > until I restart ServiceMix I get a: > > "189 - org.springframework.web - 3.0.7.RELEASE | Context initialization > failed java.lang.NoClassDefFoundError: org/aspectj/lang/JoinPoint" > ... > "Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.JoinPoint > not found by org.springframework.aop [74]" > > > Can anyone tell me if there is a good way to force org.springframework.aop > [74] to resolve the org.aspectj.* optional dependencies at startup? > > > Thank you, > Cristiano >
