Hey,

I've just installed a fresh version of the cas-crawler which uses the new
cli interface and I've got three things that I'm trying to fix:

1) Repeated warning messages:

13 Mar 2012 3:50:09 PM org.springframework.beans.TypeConverterDelegate
findDefaultEditor
WARNING: PropertyEditor [sun.beans.editors.EnumEditor] found through
deprecated global PropertyEditorManager fallback - consider using a more
isolated form of registration, e.g. on the BeanWrapper/BeanFactory!

Any ideas what this is all about?

2) Configuration files.

I use absolute paths to my configuration files which fails for spring
configuration:

...
Caused by: java.io.FileNotFoundException:
usr/local/oodt/cas-crawler/policy/cmd-line-actions.xml (No such file or
directory)

The code that's doing the work is:

   public SpringCmdLineActionStoreFactory() {

      config = System.getProperty(

            "org.apache.oodt.cas.cli.action.spring.config", null);

   }
If I put a double slash in front of the spring configuration items it works:


-Dorg.apache.oodt.cas.cli.action.spring.config=//usr/local/oodt/cas-crawler/policy/cmd-line-actions.xml
\

-Dorg.apache.oodt.cas.cli.option.spring.config=//usr/local/oodt/cas-crawler/policy/cmd-line-options.xml
\

So it's ignoring the first char?

3) I see that policy/crawler-config.xml contains three resources, but how
does it know where to find the actual files. Do these need to be pre-pended
by actual directory locations?

        <import resource="crawler-beans.xml" /> /*should the location be
included on the command line?*/
        <import resource="action-beans.xml" />
        <import resource="precondition-beans.xml" />

I'm Using Ubuntu 10.04 LTS with open jdk...

$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Any help/pointers welcome :)

Regards,
Tom

Reply via email to