[OAI-implementers] question about OCLC OAIHarvest

=?gb2312?B?amlhbmdlYg==?= jiangeb at clas.ac.cn
Sun Apr 2 04:00:23 EDT 2006


I have download OCLC's OAIHarvester2 and run test.sh as below according to README.txt, but there are some question

OAIHarvester2 running envircoment is :
OS : Red Hat Linux 9
JRE : 1.5
add some content in the /etc/profile: 
export JAVA_HOME=/usr/java/jre1.5.0_06
PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib
export PATH

First, I run test.sh
# sh test.sh
[root at dspace harvester2-0.1.6]# sh test.sh
Sun Apr 02 15:53:15 CST 2006
<?xml version="1.0" encoding="UTF-8"?>
<harvest>
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at ORG.oclc.oai.harvester2.verb.HarvesterVerb.<clinit>(HarvesterVerb.java:64)
        at ORG.oclc.oai.harvester2.app.RawWrite.run(RawWrite.java:118)
        at ORG.oclc.oai.harvester2.app.RawWrite.main(RawWrite.java:67)

Second, I edit test.sh using vi 
[root at dspace harvester2-0.1.6]# vi test.sh
#! /bin/tcsh -f
java -classpath log4j-1.2.12.jar:harvester2.jar ORG.oclc.oai.harvester2.app.RawWrite http://alcme.oclc.org/oaicat/OAIHandler

I found test.sh required log4j-1.2.12.jar but not log4j-1.2.8.jar (there is a log4j-1.2.8.jar in this directory)

Third, I rename log4j-1.2.8.jar as log4j-1.2.12.jar
# cp log4j-1.2.8.jar log4j-1.2.12.jar
# sh test.sh 
Sun Apr 02 15:57:35 CST 2006
<?xml version="1.0" encoding="UTF-8"?>
<harvest>
0 [main] DEBUG ORG.oclc.oai.harvester2.verb.HarvesterVerb  - requestURL=http://alcme.oclc.org/oaicat/OAIHandler?verb=Identify
806 [main] DEBUG ORG.oclc.oai.harvester2.verb.HarvesterVerb  - responseCode=200
806 [main] DEBUG ORG.oclc.oai.harvester2.verb.HarvesterVerb  - contentEncoding=gzip
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
        at ORG.oclc.oai.harvester2.verb.HarvesterVerb.getSingleString(HarvesterVerb.java:293)
        at ORG.oclc.oai.harvester2.verb.HarvesterVerb.harvest(HarvesterVerb.java:274)
        at ORG.oclc.oai.harvester2.verb.HarvesterVerb.<init>(HarvesterVerb.java:195)
        at ORG.oclc.oai.harvester2.verb.Identify.<init>(Identify.java:53)
        at ORG.oclc.oai.harvester2.app.RawWrite.run(RawWrite.java:118)
        at ORG.oclc.oai.harvester2.app.RawWrite.main(RawWrite.java:67)

I didn't know how to deal with these errors. Who can help me ,Watting for your answer.







 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openarchives.org/pipermail/oai-implementers/attachments/20060402/2284bf7e/attachment-0001.htm


More information about the OAI-implementers mailing list