Hazif, Can you do the following to help diagnose this issue further? * Add ³set -x² at the beginning of '/usr/local/ranger-admin/ews/ranger-admin-services.sh¹ (at line #2) * Start Ranger Admin with command /usr/local/ranger-admin/ews/ranger-admin-services.sh start 2> /tmp/ranger-admin-services-start.out¹ * Email the contents of /tmp/ranger-admin-services-start.out. Please note attachments would not work in this email thread; so you might need to create a JIRA and attach the file. If the file is small enough, you can copy/paste the contents in the email. Thanks, Madhan
From: Hafiz Mujadid <hafizmujadi...@gmail.com> Reply-To: "user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org> Date: Thursday, August 6, 2015 at 10:58 AM To: "user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org> Subject: Re: ranger startup exception Hi Waiting for help!!! On Thu, Aug 6, 2015 at 12:37 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> wrote: > Hi Gautam! > > OS Details > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=14.04 > DISTRIB_CODENAME=trusty > DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS" > > Ranger version > > master branch version 0.5 compiled manually > > to start ranger I am using following command as root user > > /usr/local/ranger-admin/ews/ranger-admin-services.sh start > > JAVA_HOME variable is exported > > The contents of catalina.out file are as follow > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > javax/servlet/ServletException > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) > at java.lang.Class.getMethod0(Class.java:2856) > at java.lang.Class.getMethod(Class.java:1668) > at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) > at > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) > Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 6 more > > > > Thanks > > On Thu, Aug 6, 2015 at 12:30 PM, Gautam Borad <gbo...@gmail.com> wrote: >> Thanks Hafiz for verifying. Can you send across the following info: >> 1. The OS flavor/version that you are using. >> 2. The Ranger version that you are using and whether it is manually installed >> OR Ambari based. >> 3. The command you are using to start Ranger Admin and whether its run as >> root or non-root user. >> 4. >> 5. Whether JAVA_HOME variable is exported or not. >> 6. The full content of the catalina.out file >> These will help us pinpoint the issue better. Thanks. >> >> On Thu, Aug 6, 2015 at 12:27 PM, Hafiz Mujadid <hafizmujadi...@gmail.com> >> wrote: >>> Here is output of java -version command >>> >>> ava version "1.7.0_79" >>> OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2) >>> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) >>> >>> >>> On Thu, Aug 6, 2015 at 11:50 AM, Gautam Borad <gbo...@gmail.com> wrote: >>>> java 1.7.0_79 should work. Just to confirm whether the right java is in >>>> your PATH can you send the output of the following command: >>>> >>>> $ java -version >>>> >>>> >>>> >>>> On Thu, Aug 6, 2015 at 11:28 AM, Hafiz Mujadid <hafizmujadi...@gmail.com> >>>> wrote: >>>>> I am using java version 1.7.0_79 >>>>> >>>>> Which version should I use? >>>>> >>>>> On Thu, Aug 6, 2015 at 10:40 AM, Gautam Borad <gbo...@gmail.com> wrote: >>>>>> Hafiz, this can be a java issue. Can you let us know which java version >>>>>> are you using? >>>>>> >>>>>> Ranger currently uses the 'java' that will be present in the PATH. >>>>>> Relevant code that start Ranger Admin : >>>>>> >>>>>> start() { >>>>>> java -Dproc_rangeradmin ${JAVA_OPTS} >>>>>> -Dlogdir=${XAPOLICYMGR_EWS_DIR}/logs/ >>>>>> -Dcatalina.base=${XAPOLICYMGR_EWS_DIR} -cp >>>>>> "${XAPOLICYMGR_EWS_DIR}/webapp/WEB-INF/classes/conf:${XAPOLICYMGR_EWS_DIR >>>>>> }/lib/*:${RANGER_JAAS_LIB_DIR}/*:${RANGER_JAAS_CONF_DIR}:${JAVA_HOME}/lib >>>>>> /*:$CLASSPATH" org.apache.ranger.server.tomcat.EmbeddedServer > >>>>>> logs/catalina.out 2>&1 & >>>>>> echo "Apache Ranger Admin has started." >>>>>> } >>>>>> >>>>>> Please make sure the right 'java' is in PATH. >>>>>> >>>>>> >>>>>> On Thu, Aug 6, 2015 at 2:21 AM, Hafiz Mujadid <hafizmujadi...@gmail.com> >>>>>> wrote: >>>>>>> hi >>>>>>> >>>>>>> I have installed ranger and and started it but it is failing. no ui page >>>>>>> is displayed and only catalina.out log file is being generated. In this >>>>>>> file following exception is logged. >>>>>>> >>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>>> javax/servlet/ServletException >>>>>>> at java.lang.Class.getDeclaredMethods0(Native Method) >>>>>>> at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) >>>>>>> at java.lang.Class.getMethod0(Class.java:2856) >>>>>>> at java.lang.Class.getMethod(Class.java:1668) >>>>>>> at >>>>>>> sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) >>>>>>> at >>>>>>> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) >>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>> javax.servlet.ServletException >>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >>>>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Any suggestion? >>>>>>> >>>>>>> >>>>>>> thanks >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Regards, >>>>>> Gautam. >>>>> >>>>> >>>>> >>>>> -- >>>>> Regards: HAFIZ MUJADID >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Gautam. >>> >>> >>> >>> -- >>> Regards: HAFIZ MUJADID >> >> >> >> -- >> Regards, >> Gautam. > > > > -- > Regards: HAFIZ MUJADID -- Regards: HAFIZ MUJADID