Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2773

should specify version range for net.sf.cglib optional import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.8, 2.3
    • OSGi
    • None

    Description

      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)

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: