[OAI-implementers] question about OCLC OAIHarvest

Young,Jeff (OR) jyoung at oclc.org
Mon Apr 3 09:49:47 EDT 2006


Sorry about that. I updated the distribution to use a consistent log4j
jar file. As for the missing class org/apache/xapth/XPathAPI, it appears
these classes were removed from the jre1.5 distribution, so I added new
jars to the harvester2 distribution to compensate. Grab the latest
harvester2 distribution from
http://pubserv.oclc.org/oaiharvester2/jars/dist.html and try it again.
Let me know if you have further problems.

 

Jeff

 

________________________________

From: oai-implementers-bounces at openarchives.org
[mailto:oai-implementers-bounces at openarchives.org] On Behalf Of jiangeb
Sent: Sunday, April 02, 2006 4:00 AM
To: oai-implementers at openarchives.org
Subject: [OAI-implementers] question about OCLC OAIHarvest
Importance: High

 

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/Logge
r
        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.RawWr
ite 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 log
4j-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://al
cme.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=gz
ip
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xpath/XPath
API
        at
ORG.oclc.oai.harvester2.verb.HarvesterVerb.getSingleString(HarvesterVe
rb.java:293)
        at
ORG.oclc.oai.harvester2.verb.HarvesterVerb.harvest(HarvesterVerb.java:
274)
        at
ORG.oclc.oai.harvester2.verb.HarvesterVerb.<init>(HarvesterVerb.java:1
95)
        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 an
swer.







 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openarchives.org/pipermail/oai-implementers/attachments/20060403/107c2c42/attachment.htm


More information about the OAI-implementers mailing list