ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toshihiko Uchida (Jira)" <j...@apache.org>
Subject [jira] [Created] (RANGER-2694) TagSync fails to start due to NoClassDefFoundError
Date Sun, 12 Jan 2020 20:29:00 GMT
Toshihiko Uchida created RANGER-2694:
----------------------------------------

             Summary: TagSync fails to start due to NoClassDefFoundError
                 Key: RANGER-2694
                 URL: https://issues.apache.org/jira/browse/RANGER-2694
             Project: Ranger
          Issue Type: Bug
          Components: tagsync
    Affects Versions: 2.0.0
            Reporter: Toshihiko Uchida


TagSync cannot start due to NoClassDefFoundError on org.apache.commons.configuration.PropertiesConfiguration.
{code:java}
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/configuration/PropertiesConfiguration
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at org.apache.atlas.kafka.NotificationProvider.get(NotificationProvider.java:33)
        at org.apache.ranger.tagsync.source.atlas.AtlasTagSource.initialize(AtlasTagSource.java:103)
        at org.apache.ranger.tagsync.process.TagSynchronizer.initializeTagSources(TagSynchronizer.java:262)
        at org.apache.ranger.tagsync.process.TagSynchronizer.initialize(TagSynchronizer.java:113)
        at org.apache.ranger.tagsync.process.TagSynchronizer.main(TagSynchronizer.java:65)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.PropertiesConfiguration
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 17 more
{code}
It happens since Ranger 2.0.0 uses commons-configuration2, while Atlas 2.0.0 uses commons-configuration.
 - Ranger: [https://github.com/apache/ranger/blob/89c5ac6/tagsync/pom.xml#L72-L76]
 - Atlas: [https://github.com/apache/atlas/blob/35ec91a/notification/pom.xml#L119-L123]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message