Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
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]