Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
33255
Description
The FTP file system throws a ClassNotFoundException because common-net seems to
depend on jakarta-oro for FTP.
java -cp
.:target/commons-vfs-1.0-dev.jar:target/lib/commons-logging-1.0.4.jar:target/lib/commons-net-1.2.1.jar
org.apache.commons.vfs.example.ShowProperties ftp://gnu.kookel.org/pub/apache/ant/
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/oro/text/r
egex/MalformedPatternException
at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEntryParserFactory.java:121)
at
org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:84)
at
org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2306)
at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2055)
at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.listFiles(FTPCli
entWrapper.java:100)
at
org.apache.commons.vfs.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:117)
at
org.apache.commons.vfs.provider.ftp.FtpFileObject.getChildFile(FtpFileObject.java:86)
at
org.apache.commons.vfs.provider.ftp.FtpFileObject.getInfo(FtpFileObject.java:162)
at
org.apache.commons.vfs.provider.ftp.FtpFileObject.doAttach(FtpFileObject.java:151)
at
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1199)
at
org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:401)
at org.apache.commons.vfs.example.ShowProperties.main(ShowProperties.jav