commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilaria Castelli" <>
Subject using commons-vfs as webservice -newbie-
Date Mon, 08 Jan 2007 16:25:17 GMT
I'm trying to develop a webservice using commons-vfs, Apache Tomcat and
First of all I wrote and tryed my method locally including the libraries
needed and everything's working.
Then I deployd this class on Axis:

import org.apache.commons.vfs.*;
import java.util.*;
public class VFSi {
   private FileSystemManager fsManager=new
   public String Move(String From, String To) {...}
   public String Copy (String From, String To) {...}
   public String Delete (String Resource) {...}

I put in axis/WEB-INF/lib all the .jar needed, restarted tomcat, and wrote a
trial client to call methods:

      static final String svcURL = "";

      //.......definiton of fslist Vector - list of filesystems

      Service svc = new Service();
      Call call = (Call) svc.createCall();
      String resp = (String) call.invoke (new Object[] {fslist.elementAt

running the client I obtain this Exception:

 org.apache.commons.vfs.FileSystemException: Unknown scheme "file" in URI "

and similar Exceptions using other filesystem types (ftp, smb) working
correctly locally but not once deployed.

Since i'm newbie, any help is welcome, thanks.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message