Thank you.  Now I'm getting some where.
So I've changed the -s part from the command from -s /dspace/batch to -s
/dspace/ and it generated more output.  Do the files (dublin_core.sml,
contents, and the actual file that's being uploaded) need to be in
/dspace/search and /dsapce/lib ?:

Adding item from directory search
        Loading dublin core from /dspace//search/dublin_core.xml

Adding item from directory lib
java.io.FileNotFoundException: /dspace/lib/dublin_core.xml (No such file or
directory)

java.io.FileNotFoundException: /dspace/lib/contents (No such file or
directory)
        at java.io.FileInputStream.open(Native Method)


So I've copied the files (dublin_core.sml, contents, and the actual file
that's being uploaded) from /dspace/search/ to /dspace/lib so they would
exist in both of the directories /dspace/search and /dspace/lib
Then I ran the command again:
 
Adding item from directory search
        Loading dublin core from /dspace//search/dublin_core.xml

Adding item from directory lib
        Loading dublin core from /dspace//lib/dublin_core.xml


Adding item from directory etc.bak-20080701-153023
java.io.FileNotFoundException:
/dspace/etc.bak-20080701-153023/dublin_core.xml (No such file or directory)

java.io.FileNotFoundException:
/dspace/etc.bak-20080701-153023/dublin_core.xml (No such file or directory)



It's looking for /dspace/etc.bak-20080701-153023/dublin_core.xml...

Any suggestions?


Claudia Jürgen wrote:
> 
> Hello,
> 
> you need one directory per item and the source directory given with -s 
> option is the directory where these item directories reside.
> 
> So if the elements of the item are really straight under /dspace/run, 
> your command should be:
>   /dspace/bin/dsrun org.dspace.app.itemimport.ItemImport -a -e 
> [EMAIL PROTECTED] -c 123456789/10 -s /dspace -m /dspace/map/mapfile.txt
> 
> your info differs as you say
> "-s /dspace/run" is your command
> and from the output it seems as if you used
> "/dspace/batch"
> 
> 
> hope that helps
> 
> Claudia
> 
> 
> 
> upload schrieb:
>> Hello, 
>> I'm new to dspace and trying to upload using batch import. 
>> When I do the batch import, there're no errors generated but when I go to
>> the URL for the collection, it doesn't show any submissions. 
>> 
>> The command I run is: 
>> /dspace/bin/dsrun org.dspace.app.itemimport.ItemImport -a -e [EMAIL 
>> PROTECTED]
>> -c
>> 123456789/10 -s /dspace/run -m /dspace/map/mapfile.txt 
>> 
>> The contents, dublin_core.xml, and the actual document in pdf are located
>> in
>> /dspace/run/ 
>> 
>> Upon running the command, I get: 
>> Destination collections: 
>> Owning  Collection: Upload 
>> Adding items from directory: /dspace/batch 
>> Generating mapfile: /dspace/mapfiles/mapfile.txt 
>> 
>> And the mapfile.txt is empty. 
>> 
>> The log doesn't say much in /dspace/log/dspace.log: 
>> 2008-08-11 15:21:03,140 INFO  org.dspace.core.ConfigurationManager @
>> Loading
>> from classloader: file:/data/dspace/config/dspace.cfg 
>> 2008-08-11 15:21:03,152 INFO  org.dspace.core.ConfigurationManager @
>> Using
>> dspace provided log configuration (log.init.config) 
>> 2008-08-11 15:21:03,152 INFO  org.dspace.core.ConfigurationManager @
>> Loading: /dspace/config/log4j.properties 
>> 
>> The system is Redhat 5. 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dspace-1.5-cannot-batch-import-tp18947640p18948289.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to