Hi, it is quite difficult to diagnose the problem with the details you provide, anyway I'll try to give you some ideas/hints (inline)
On Wed, Jun 10, 2009 at 5:14 PM, Fiona Mahon<[email protected]> wrote: > I am trying to watch three different directories using Felix File Install. I > have set the system to watch directory 'mainwatchedDir' in my props.xargs > file using > -Dfelix.fileinstall.dir=./mainwatchedDir Not sure how is your startup setup (what's the props.xargs? in which file of the felix distribution is it?) If you are using the standard felix distribution, just add the line felix.fileinstall.dir=./mainwatchedDir in the file conf/config.properties Please notice that since you use a relative url, it is relative to the folder where you start the JVM > I've added three subdirectories to 'mainwatchedDir' > - 'subWatchedDir1' > - 'subWatchedDir2' > - 'subWatchedDir3' > > I've added 3 configuration files to 'mainwatchedDir' > - org.apache.felix.fileinstall-subWatchedDir1 > - org.apache.felix.fileinstall-subWatchedDir2 > - org.apache.felix.fileinstall-subWatchedDir3 > > In each of those files I have defined to watch the 3 subdirectories > - felix.fileinstall.dir=./subWatchedDir1 (in > org.apache.felix.fileinstall-subWatchedDir1) > - felix.fileinstall.dir=./subWatchedDir2 (in > org.apache.felix.fileinstall-subWatchedDir2) > - felix.fileinstall.dir=./subWatchedDir3 (in > org.apache.felix.fileinstall-subWatchedDir3) 1) configuration files must have the ".cfg" extension, so org.apache.felix.fileinstall-subWatchedDir1.cfg for instance 2) relative URLs are relative to the folder where the JVM started, so if you write felix.fileinstall.dir=./subWatchedDir1 it won't watch a subdirectory of 'mainwatchedDir > (I've commented out all other settings in those files for the minute) > > When I start the Felix File Install bundle in the container I get the > following error: > Error while updating org.apache.felix.fileinstall.0 > (java.lang.ClassCastException: java.lang.Boolean cannot be cast to > java.lang.String That's strange... is the stacktrace giving any more detail? -- Filippo Diotalevi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

