Metacat Harvester is normally launched as a Java servlet, but also has the option of being invoked manually from a pair of command-line scripts ('lib/harvester/runHarvester.bat' on Windows, 'lib/harvester/runHarvester.sh' on Linux). As of Metacat 1.9.x, execution of Metacat Harvester via the command-line scripts is not working.
Solution:
Additional dependencies need to be specified in the Java CLASSPATH:
a. METACAT_LIB/log4j-1.2.12.jar
b. METACAT_LIB/xalan.jar
c. METACAT_LIB/postgresql-8.0-312.jdbc3.jar (for POSTGRESQL)
The Harvester.java class needs the following changes:
a. Add support for log4j initialization in the 'main' method.
b. In the 'loadProperties()' method, change the PropertyService constructor from 'PropertyService.getInstance();' to 'PropertyService.getTestInstance(configDir);' where 'configDir' is a relative path to the directory where 'metacat.properties' resides.
Note: The solution implemented to resolve this problem for Metacat Harvester will also be beneficial toward the implementation of the new Metacat OAI-PMH Harvester described in Bug #3835.
Author Name: Duane Costa (Duane Costa) Original Redmine Issue: 4245, https://projects.ecoinformatics.org/ecoinfo/issues/4245 Original Date: 2009-07-13 Original Assignee: Duane Costa
Metacat Harvester is normally launched as a Java servlet, but also has the option of being invoked manually from a pair of command-line scripts ('lib/harvester/runHarvester.bat' on Windows, 'lib/harvester/runHarvester.sh' on Linux). As of Metacat 1.9.x, execution of Metacat Harvester via the command-line scripts is not working.
Solution:
Note: The solution implemented to resolve this problem for Metacat Harvester will also be beneficial toward the implementation of the new Metacat OAI-PMH Harvester described in Bug #3835.