Hi, That's because spring-context bundle import javax.annotation pachage as optional, so if javax.annotation isn't available, spring-context bundle still can start successfully. You can specify genonimo-annotation bundle start level ensure it's before spring-context bundle, or you can refresh spring-context bundle manually after you install genonimo-annotation which can make it pick up the optional import. Or you can put genonimo-annotation in a feature, when install a feature, it will automatically refresh all bundles which optional import is available from this feature bundle.
Freeman On 2011-3-17, at 上午11:40, Dan Tran wrote:
One more note, if i take out java.annotation.* from jre.properties, I need to make sure genonimo-annotation to load before spring, other wise, spring will not invoke spring component with @PostConstruct etc .... -D
-- Freeman Fang ------------------------ FuseSource: http://fusesource.com blog: http://freemanfang.blogspot.com twitter: http://twitter.com/freemanfang Apache Servicemix:http://servicemix.apache.org Apache Cxf: http://cxf.apache.org Apache Karaf: http://karaf.apache.org Apache Felix: http://felix.apache.org
