Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-53

[VFS] ftp file system depends on ORO for a MalformedPatternException

    XMLWordPrintableJSON

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            anthony.goubard@wanadoo.nl Anthony Goubard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: