>
> Hello Evgeni, 
>

I am also having the same problem.
I'll share the post I made in dspace-community for introduction:
https://groups.google.com/forum/#!searchin/dspace-community/Questions$20regarding$20METS$2FAIP$20ingestion$20in$20DSpace/dspace-community/1OrWeDfnD20/ECZWJv9oBgAJ

1)
If I import the collection using -t METS, the following error message 
happens:
 java.lang.ClassCastException: org.dspace.content.Community cannot be cast 
to org.dspace.content.Collection

2)
If I import the collection using -t AIP (after changing the PROFILE, etc), 
the following happens:
"METS document is missing the required structMap[@LABEL='Parent'] element."

NOTE: I did not export from an existing DSpace. I'm importing METS items 
for the first time in DSpace.
What I *think* is happening is, for the -t METS, DSpace won't recognize the 
mets package as a collection, instead it will interpret it as an Item, as 
such, when interpreting the parent in the structMap of the collection being 
imported (a community), it'll interpret it as a collection, instead of a 
community. Hence the message.
After that I tried with -t AIP and have the message in 2). What I *think* 
happens in this case is it's complaining because the structMap in the ITEMS 
(not the COLLECTION package being imported) is non-existent. But why would 
it exist? I'm importing the COLLECTION package that already defines each 
ITEM package contained in it. Additionally, even if I wanted to inject some 
structMap for each ITEM (just to bypass this) how would I? I don't know the 
handle of the parent collection because I'm submitting it for the first 
time.

I hope this wasn't too confusing.
Any help would be greatly appreciated.

Thank you,

Pedro Amorim






-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to