should specify version range for net.sf.cglib optional import -------------------------------------------------------------
Key: CXF-2773 URL: https://issues.apache.org/jira/browse/CXF-2773 Project: CXF Issue Type: Bug Components: OSGi Reporter: Freeman Fang Fix For: 2.3, 2.2.8 to keep it same as the optional org.springframework.beans import which optional import net.sf.cglib.proxy;version="[2.1.3, 2.2.0)". Currently cxf bundle optional import net.sf.cglib, but doesn't specify the version range, also cxf bundle optional import org.springframework.beans, which optional import net.sf.cglib with version range [2.1.3, 2.2.0), so this could cause problem when osgi container have net.sf.cglib 2.2.0 version, which meet the cxf bundle optional import net.sf.cglib, but not for the spring beans bundle optional import net.sf.cglib with version range [2.1.3, 2.2.0), so that the org.springframework.beans isn't available for cxf bundle as it's only optional, this can cause exception when parse cxf.xml Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/beans/factory/support/ManagedSet at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.