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

NoClassDefFoundError error when launching the instance OAI

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: OAI-PMH
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      9
    • Documentation Status:
      Needed

      Description

      For instance of DSpace based on the last version on git, when I launch the oai instance, I have 2 errors:
      1) java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
      com.lyncode.jtwig.mvc.JtwigViewResolver.hasTheme(JtwigViewResolver.java:75
      2) java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
      org.parboiled.Parboiled.createParser(Parboiled.java:54)
      com.lyncode.jtwig.parser.JtwigParser.parse(JtwigParser.java:54)

      The jars "commons-lang3" and "asm" are used in the oai instance but not defined in the pom.xml because always in an "exclusion" tag (see commit below):

      commit b66c6b0bb3e074e23d93dd110fdf0a223bd32340
      <exclusion>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      </exclusion>
      commit 346bd5bcd51926721342515f32da8e2fb4f902ec
      <exclusion>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
      </exclusion>

        Attachments

          Activity

            People

            • Assignee:
              mwood Mark H. Wood
              Reporter:
              fsmagghe Fabian Smagghe
              Reviewer:
              Tim Donohue
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: