From: Xiaoming L. <xia...@gm...> - 2006-11-14 20:39:32
|
hi, The Dspace plug-in is based on an older version of ARC code, however I didn't develop the package by myself, would you please check if dps.xml is located in conf directory? This is defined in ns/XMLDPReader.java public XMLDPReader() { this("./conf/dps.xml"); } secondly, you will need start the application from "build" directory, and put "current" directory in your classpath, such as: CLASSPATH=.:/home/gmanepal/xml/sax.jar:/home/gmanepal/xml/xp.jar; export CLASSPATH let me know if you still have problems. xiaoming >cd build On 11/14/06, GuoFang Teng <guo...@vi...> wrote: > Hi Xiaoming, > > Thank you for your reply. I appreciate it. I am trying to harvest > things from a given data provider into my dspace. I downloaded > plugin.jar and xml.jar from > http://dspace.cs.odu.edu/downloads.html > > And I followed the instructions in the Readme file. I went through the > steps until s, which is to Run Command: java scheduler/Harvest. But the > system told me: > > An error occurred: java.lang.Exception: Data Provider configuration > file '/dps.xml' not found. > > I have copied dps.xml into the same directory XMLDPReader.class is in. > But the system still can not find it. I looked into your > XMLDPReader.java file and found the object of ClassLoader cl was not > null, which I think was OK. But after we call: > > in = cl.getResourceAsStream(xmlurl). The object of java.io.InputStream > in was always null. So, the system threw an exception. I know we need > to set Classpath to point to sax.jar and xp.jar, which I had done. But > it looked still unable to getResourceAsStream. > > I am not sure if I did it correctly. And I attached dps.xml. Thank you > very much for your help on it. I really appreciate it. > > > Bryan Teng > > ----- Original Message ----- > From: Xiaoming Liu <xia...@gm...> > Date: Tuesday, November 14, 2006 2:25 pm > Subject: Fwd: Fw: Questions about OAI > To: guo...@vi... > Cc: oai...@li... > > > hi Bryan, > > > > Could you tell me where you download the software and what you try > > to do? We > > are still maintaining the arc software through sourceforge, and > > the latest > > version is available from sourceforge. > > > > thanks, > > xiaoming > > > > > > > > ----- Forwarded by Kurt Maly/LOTUS on 11/14/2006 01:15 PM ----- > > *GuoFang Teng <guo...@vi...>* > > Sent by: guo...@vi... > > > > 11/14/2006 11:13 AM > > To > > ma...@cs... cc > > > > Subject > > Questions about OAI > > > > > > > > > > > > > > Hi Dr.Maly, > > > > My name is Bryan and I am a graduate student working on OAI > > harvester at > > Villanova University. I downloaded plugin.jar and xml.jar files from > > your website and followed your instructions until step s). I tried to > > run java scheduler/Harvest to start harvesting files based on data > > provider xml file, but I was always told the configuration file could > > not be found. I tried different approaches to debug. And it looked the > > file was found but cannot be read as a stream, although I do have > > sax.jar as one of my classpath. > > > > I am wondering if you know about this problem or if you can > > provide me > > some information of your students who worked on it. Thank you very > > muchfor your help. I appreciate it. > > > > Bryan Teng > > > > > |