Hi Keith,

Thanks for your response.  This is what is what is in the "javaDspaceExport.sh" 
file:

#! /bin/bash
#
# importing using itemimportnew
#
# arg1 is collection eg. 123456789/x
# arg2 is euser eg. [email protected]
# arg3 is source ingest parent directory
# arg4 is mapfile
# arg5 is optional for Resume (which means continue previous aborted)
#org.dspace_scipubs.app.itemimportnew.ItemImportNew -P -c 123456789/6 -a -e 
[email protected] -s /opt/dspace_scipubsIngestSrc/testImport -m 
/opt/dspace_scipubsIngestSrc/testMapfile.txt

# this was last line
# org.dspace.app.itemimportnew.ItemImportNew -P -c $1 -a -e $2 -s $3 -m $4

#if [ -z "$4" ]; then
#       echo "Usage: collection user sourceParentIngest mapfile\n"
#       echo "make sure dspace.cfg in this directory matches 
/v1/dspace_scipubs/config/dspace.cfg"
#       exit 1 
#fi

java -cp .:\
/v1/dspace_scipubs/lib/dspace.jar:\
/v1/dspace_scipubs/lib/commons-cli.jar:\
/v1/dspace_scipubs/lib/xalan.jar:\
/v1/dspace_scipubs/lib/xercesImpl.jar:\
/v1/dspace_scipubs/lib/commons-dbcp.jar:\
/v1/dspace_scipubs/lib/commons-pool.jar:\
/v1/dspace_scipubs/lib/log4j.jar:\
/v1/dspace_scipubs/lib/postgresql-8.0-312.jdbc2.jar:\
/v1/dspace_scipubs/lib/lucene.jar:\
/v1/dspace_scipubs/lib/jena.jar:\
/v1/dspace_scipubs/lib/activation.jar:\
/v1/dspace_scipubs/lib/jargon.jar:\
/v1/dspace_scipubs/lib/commons-collections.jar:\
/v1/dspace_scipubs/lib/handle.jar:\
/v1/dspace_scipubs/lib/standard.jar \
org.dspace.app.itemexport.ItemExport --type=ITEM --id="2246/2767" 
--dest="/home/jcwiok" --number="3457"

Honestly, I am unsure what version of Java we are using.  There isn't much 
documentation for me to go on, but I will look into it.  I'll check on the disk 
space and the directory permissions as well.  I'll keep you posted.

Thanks again.

Jen Cwiok
Digital Projects Manager
Department of Library Services
American Museum of Natural History
79th Street and Central Park West
New York, NY 10024-5192
212.769.5644
library.amnh.org



On Nov 12, 2010, at 1:36 PM, Keith Gilbertson wrote:

> Jen -
> 
> I think "javaDspaceExport.sh" is a custom script that the previous 
> administrator of your system created, and not part of the default 
> distribution.  What's inside of that file?
> 
> One thing to notice is these lines:
>>  at java.io.File.performCreate(libgcj.so.7rh)
> 
> They say libgcj.so.7rh, which makes me think that a version of Java other 
> than a Sun/Oracle standard JDK is being used.  That can cause problems 
> sometimes; you might need to make sure you're using a standard JDK from 
> Oracle.
> 
> Another thing to check is if there is enough disk space, and that the target 
> directories have the appropriate permissions.
> 
> --keith
> 
> 
> 
> On Nov 12, 2010, at 1:18 PM, Jen Cwiok wrote:
> 
>> Hello,
>> 
>> I am exporting items from Dspace and the script that I am running does a 
>> complete export for some items, but only gives me the Dublin Core xml file 
>> for other items.  If I try to export a collection, I also a get an error.  
>> Here is the command and the resulting error messages:
>> 
>> [jcw...@lbry-web-003 ~]$ cd /v1/dspace/amnh/java
>> [jcw...@lbry-web-003 java]$ sudo ./javaDspaceExport.sh
>> Password: 
>> Exporting Item 2769 to /home/jcwiok/3457
>> Attempting to create file /home/jcwiok/3457/dublin_core.xml
>> Exception in thread "main" java.io.IOException: No such file or directory
>>  at java.io.File.performCreate(libgcj.so.7rh)
>>  at java.io.File.createNewFile(libgcj.so.7rh)
>>  at org.dspace.app.itemexport.ItemExport.writeBitstreams(ItemExport.java:437)
>>  at org.dspace.app.itemexport.ItemExport.exportItem(ItemExport.java:308)
>>  at org.dspace.app.itemexport.ItemExport.main(ItemExport.java:240)
>> [jcw...@lbry-web-003 java]$ 
>> 
>> If anyone knows why this works for some items, but not all, I would greatly 
>> appreciate it.  I can provide more information if need be.
>> 
>> Thanks in advance,
>> 
>> Jen Cwiok
>> Digital Projects Manager
>> Department of Library Services
>> American Museum of Natural History
>> 79th Street and Central Park West
>> New York, NY 10024-5192
>> 212.769.5644
>> library.amnh.org
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Centralized Desktop Delivery: Dell and VMware Reference Architecture
>> Simplifying enterprise desktop deployment and management using
>> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
>> client virtualization framework. Read more!
>> http://p.sf.net/sfu/dell-eql-dev2dev
>> _______________________________________________
>> Dspace-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-devel
> 

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to