DSpace and Datacite

97 views
Skip to first unread message

Tianyi Gu

unread,
Jun 27, 2022, 10:51:16 AM6/27/22
to DataCite Metadata
Hello everyone,

We are configuring DSpace to mint DOI using Datacite services.

Here is the DSpace guide: DOI Digital Object Identifier - DSpace 7.x Documentation - LYRASIS Wiki. There are three config files in DSpace attached.

After the modification, I run the cron job to register a DOI, but it didn't go through. From the error message, I could see it didn't capture the prefix:

C:\DSpace2\bin>dspace doi-organiser -r
Using DSpace installation in: C:\DSpace2
java.lang.ClassCastException: class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.SymbolTable.addVariable(SymbolTable.java:98)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Variable.parseContents(Variable.java:84)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:587)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:559)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:398)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:493)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:570)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:1018)
        at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:817)
        at org.dspace.content.crosswalk.XSLTCrosswalk.getTransformer(XSLTCrosswalk.java:186)
        at org.dspace.content.crosswalk.XSLTDisseminationCrosswalk.disseminateElement(XSLTDisseminationCrosswalk.java:214)
        at org.dspace.identifier.doi.DataCiteConnector.reserveDOI(DataCiteConnector.java:391)
        at org.dspace.identifier.DOIIdentifierProvider.reserveOnline(DOIIdentifierProvider.java:386)
        at org.dspace.identifier.DOIIdentifierProvider.registerOnline(DOIIdentifierProvider.java:438)
        at org.dspace.identifier.DOIIdentifierProvider.registerOnline(DOIIdentifierProvider.java:405)
        at org.dspace.identifier.doi.DOIOrganiser.register(DOIOrganiser.java:408)
        at org.dspace.identifier.doi.DOIOrganiser.register(DOIOrganiser.java:478)
        at org.dspace.identifier.doi.DOIOrganiser.runCLI(DOIOrganiser.java:240)
        at org.dspace.identifier.doi.DOIOrganiser.main(DOIOrganiser.java:98)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
ERROR:  'Could not compile stylesheet'
FATAL ERROR:  'class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')'
           :class com.sun.org.apache.xalan.internal.xsltc.compiler.Param cannot be cast to class com.sun.org.apache.xalan.internal.xsltc.compiler.Variable (com.sun.org.apache.xalan.internal.xsltc.compiler.Param and com.sun.org.apache.xalan.internal.xsltc.compiler.Variable are in module java.xml of loader 'bootstrap')
Unable to send email alert.
It wasn't possible to register this identifier: doi:10.5072/dspace/1




Please advice.

Thank you,
Tianyi


Data architect, 
Open Science Publication Repository project, 
Shared Service Canada
identifier-service.xml
DIM2DataCite.xsl
Reply all
Reply to author
Forward
0 new messages