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. Whether JAVA_HOME variable is exported or not.
   5. 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.

Reply via email to