Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3557

dependency on multiple Apache Jena versions

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      DSpace 6.0 depends on two Apache Jena versions: 2.6.4 and 2.13.0:

       

      $ find . -name pom.xml | xargs grep --color=auto -n -A1 jena
      ./dspace-swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml:183: <groupId>com.hp.hpl.jena</groupId>
      ./dspace-swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml:184: <artifactId>jena</artifactId>
      ./dspace-swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml-185- <version>2.6.4</version>

      ./dspace-rdf/pom.xml:22: <!-- Use jena to create, store and load rdf -->
      ./dspace-rdf/pom.xml-23- <dependency>
      ./dspace-rdf/pom.xml:24: <groupId>org.apache.jena</groupId>
      ./dspace-rdf/pom.xml:25: <artifactId>apache-jena-libs</artifactId>
      ./dspace-rdf/pom.xml-26- <exclusions>

      ./dspace/modules/rdf/target/war/work/org.dspace/dspace-rdf/META-INF/maven/org.dspace/dspace-rdf/pom.xml:22: <!-- Use jena to create, store and load rdf -->
      ./dspace/modules/rdf/target/war/work/org.dspace/dspace-rdf/META-INF/maven/org.dspace/dspace-rdf/pom.xml-23- <dependency>
      ./dspace/modules/rdf/target/war/work/org.dspace/dspace-rdf/META-INF/maven/org.dspace/dspace-rdf/pom.xml:24: <groupId>org.apache.jena</groupId>
      ./dspace/modules/rdf/target/war/work/org.dspace/dspace-rdf/META-INF/maven/org.dspace/dspace-rdf/pom.xml:25: <artifactId>apache-jena-libs</artifactId>
      ./dspace/modules/rdf/target/war/work/org.dspace/dspace-rdf/META-INF/maven/org.dspace/dspace-rdf/pom.xml-26- <exclusions>

      ./dspace/modules/swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml:183: <groupId>com.hp.hpl.jena</groupId>
      ./dspace/modules/swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml:184: <artifactId>jena</artifactId>
      ./dspace/modules/swordv2/target/war/work/org.swordapp/sword2-server/META-INF/maven/org.swordapp/sword2-server/pom.xml-185- <version>2.6.4</version>

      ./pom.xml:29: <jena.version>2.13.0</jena.version>
      ./pom.xml-30- <slf4j.version>1.7.14</slf4j.version>

      ./pom.xml:1048: <groupId>org.apache.jena</groupId>
      ./pom.xml:1049: <artifactId>apache-jena-libs</artifactId>
      ./pom.xml-1050- <type>pom</type>
      ./pom.xml:1051: <version>${jena.version}</version>
      ./pom.xml-1052- </dependency>

      ./dspace-api/pom.xml:331: <groupId>org.apache.jena</groupId>
      ./dspace-api/pom.xml:332: <artifactId>apache-jena-libs</artifactId>
      ./dspace-api/pom.xml-333- <type>pom</type>

       

       

      This causes SWORD to malfunction, as reported in dspace-tech:

      https://groups.google.com/d/msg/dspace-tech/CejsmhyDeEg/NN5bIsECAAAJ

       

      It seems that the SWORD 2.0 interface of

      demo.dspace.org

      is broken. According to the SWORD protocol, the following curl command should be sufficient to create a (very simple) deposition on the instance: curl -u

      dspacedemo+submit@gmail.com:dspace http://demo.dspace.org/swordv2/collection/10673/2

      -X POST -d @article.pdf -H "Content-Disposition: attachment; filename=article.pdf" (where article.pdf is some PDF file in the current working directory). This command triggers an HTTP 500 error: java.lang.NoSuchMethodError: com.hp.hpl.jena.rdf.model.impl.RDFWriterFImpl.setBaseWriterClassName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; This is a relatively simple bug to spot - I wonder whether it would make sense to run a few unit tests like this one against the demo instance. Travis is free for open source projects and now allows builds to be run periodically.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            helix84 Ivan Masár
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: