Hey Tom,

On Mar 13, 2012, at 7:32 AM, Thomas Bennett wrote:

> 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?

This sounds like CAS-CLI introduced logging issues. We can suppress these via 
CrawlerLauncher (or via some other Java program that you
are calling) by adding:

org.springframework.beans.level = OFF

To the logging.properties file or setting via Java API's LoggingManager.

Can you open a JIRA for this for 0.4?

> 
> 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?

I think with Spring, you have to specify:

file:relative/path/to/file

See here: 

http://stackoverflow.com/questions/1601106/relative-paths-in-spring-classpath-resource
http://stackoverflow.com/questions/3611250/reference-spring-properties-file-using-path-relative-to-config-file

Are you saying that this used to work (prior to CAS-CLI) and now you are seeing 
a regression? If so, can
you open up a JIRA issue and we can take a look?

> 
> 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 :)

Yeah I think that's dictated by the classpath level resources (which are baked 
into the crawler JAR file).

Does that make sense?

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to