Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1697

Bundled version of Commons VFS 1.0.0.6 depends on Commons Http Client [2.0.2, 3) which does not have bundled version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • bundles-2014.02
    • Bundles
    • None
    • VFS version: 1.0.0.6

    Description

      Current ServiceMix features contains only Commons Http Client 3.x, but Commons VFS is used in ServiceMix features has org.apache.commons.httpclient;resolution:=optional;version="[2.0.2,3).
      According to the maven POM for Commons VFS it is compiled using Http Client 2.0.2.

      Imports for VFS bundle:

      Import-Package: com.jcraft.jsch;resolution:=optional;version="[0.1.23,
       2)",javax.crypto,javax.xml.parsers,org.apache.commons.collections.map
       ;resolution:=optional;version="[3.1,4)",org.apache.commons.httpclient
       ;resolution:=optional;version="[2.0.2,3)",org.apache.commons.httpclie
       nt.methods;resolution:=optional;version="[2.0.2,3)",org.apache.common
       s.httpclient.util;resolution:=optional;version="[2.0.2,3)",org.apache
       .commons.logging;version="[1.0,2)",org.apache.commons.net.ftp;resolut
       ion:=optional;version="[1.4.1,2)",org.apache.commons.net.ftp.parser;r
       esolution:=optional;version="[1.4.1,2)",org.apache.tools.ant;resoluti
       on:=optional;version="[1.6.2,2)",org.w3c.dom
      
       
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/util/URIUtil
       at org.apache.commons.vfs.provider.URLFileName.getPathQueryEncoded(URLFileName.java:83)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.URLFileName.getURIEncoded(URLFileName.java:138)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.url.UrlFileObject.createURL(UrlFileObject.java:75)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.url.UrlFileObject.doAttach(UrlFileObject.java:64)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1291)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:412)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject.java:402)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
       at org.apache.commons.vfs.provider.AbstractFileObject.findFiles(AbstractFileObject.java:1466)[183:org.apache.servicemix.bundles.commons-vfs:1.0.0.6]
      

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            dnk Dmitry Konstantinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: