Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1905

NoClassDefFoundError from the built zip/tar.gz, created by the maven-assembly-plugin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: admin
    • Labels:
      None
    • Flags:
      Patch, Important

      Description

      It seems, because of the recent guava exclusions, the maven-assembly plugin fails to include guava-17.0.jar in ews/lib. It only puts into ews/webapp/WEB-INF/lib and cred/lib/guava-17.0.jar. Unfortunately this blocks starting up the server, because of the following exception:

      Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
              at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:336)
              at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:349)
              at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:431)
              at org.apache.ranger.server.tomcat.EmbeddedServer.getDecryptedString(EmbeddedServer.java:480)
              at org.apache.ranger.server.tomcat.EmbeddedServer.start(EmbeddedServer.java:142)
              at org.apache.ranger.server.tomcat.EmbeddedServer.main(EmbeddedServer.java:76)
      Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      

        Attachments

        1. RANGER-1905.patch
          2 kB
          Zsombor Gegesy
        2. RANGER-1905-2.patch
          3 kB
          Zsombor Gegesy
        3. RANGER-1905-3.patch
          6 kB
          Zsombor Gegesy
        4. RANGER-1905-4.patch
          6 kB
          Zsombor Gegesy

          Issue Links

            Activity

              People

              • Assignee:
                zsombor Zsombor Gegesy
                Reporter:
                zsombor Zsombor Gegesy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: