Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2082

Exclude javax.servlet-3.0.0.v201112011016.jar from Sentry dist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0, 2.1.0
    • Sentry
    • None

    Description

      The javax.servlet-3.0.0.v201112011016.jar transitive dependency is causing some error exceptions on the Sentry 2.0 distribution in some Mac environments.

      17/11/29 10:13:25 ERROR thrift.SentryService: Error starting server
      java.lang.SecurityException: class "javax.servlet.DispatcherType"'s signer
      information does not match signer information of other classes in the same
      package
              at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
              at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
              at
      java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
              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)
              at
      org.apache.sentry.service.thrift.SentryService.startSentryWebServer(SentryService.java:422)
              at
      org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:268)
              at
      org.apache.sentry.service.thrift.SentryService.call(SentryService.java:198)
              at
      org.apache.sentry.service.thrift.SentryService.call(SentryService.java:76)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Exception in thread "main" java.util.concurrent.ExecutionException:
      java.lang.Exception: Error starting server
              at java.util.concurrent.FutureTask.report(FutureTask.java:122)
              at java.util.concurrent.FutureTask.get(FutureTask.java:192)
              at
      org.apache.sentry.service.thrift.SentryService$CommandImpl.run(SentryService.java:591)
              at org.apache.sentry.SentryMain.main(SentryMain.java:122)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.hadoop.util.RunJar.run(RunJar.java:234)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
      Caused by: java.lang.Exception: Error starting server
              at
      org.apache.sentry.service.thrift.SentryService.call(SentryService.java:202)
              at
      org.apache.sentry.service.thrift.SentryService.call(SentryService.java:76)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.SecurityException: class
      "javax.servlet.DispatcherType"'s signer information does not match signer
      information of other classes in the same package
              at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
              at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
              at
      java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
              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)
              at
      org.apache.sentry.service.thrift.SentryService.startSentryWebServer(SentryService.java:422)
              at
      org.apache.sentry.service.thrift.SentryService.runServer(SentryService.java:268)
              at
      org.apache.sentry.service.thrift.SentryService.call(SentryService.java:198)
              ... 5 more
      

      Attachments

        1. SENTRY-2082.1.patch
          0.5 kB
          Sergio Peña
        2. SENTRY-2082.1.patch
          0.5 kB
          Krishna Kalyan

        Issue Links

          Activity

            People

              spena Sergio Peña
              spena Sergio Peña
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: