Sergio Peña created SENTRY-2082:
-----------------------------------

             Summary: Exclude javax.servlet-3.0.0.v201112011016.jar from Sentry 
dist
                 Key: SENTRY-2082
                 URL: https://issues.apache.org/jira/browse/SENTRY-2082
             Project: Sentry
          Issue Type: Bug
          Components: Sentry
    Affects Versions: 2.0.0
            Reporter: Sergio Peña
            Priority: Blocker


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.

{noformat}
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
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to