Hafiz, i was able to reproduce this in the latest code.

Please revert the changes done in pom.xml in this commit
<https://github.com/apache/incubator-ranger/commit/edf2af7aa11ab64c8f4a63936001baa3e9da46e9>
and try to build again.

If it works, we need to reopen RANGER-600.

On Fri, Aug 7, 2015 at 11:23 AM, Hafiz Mujadid <[email protected]>
wrote:

> Hi
>
> this is the output of the above command
>
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/ranger-plugins/solr/ranger-solr-plugin-0.5.0-standalone.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-jdbc-1.2.0-standalone.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/ranger-plugins/kms/ranger-kms-plugin-0.5.0-standalone.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/ranger-plugins/hdfs/ranger-hdfs-plugin-0.5.0-standalone.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/lib/spring-web-3.1.3.RELEASE.jar
> matches
> Binary file
> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/lib/servlet-api-2.5.jar
> matches
>
>
>
> On Fri, Aug 7, 2015 at 10:31 AM, Gautam Borad <[email protected]> wrote:
>
>> Hafiz, Seems a slash is missing before 'semicolon'. Please try the below :
>>
>> *find /usr/local/ranger-0.5.0-admin -name "*.jar" -exec fgrep -H
>> ServletException {} \;*
>>
>> On Fri, Aug 7, 2015 at 10:14 AM, Hafiz Mujadid <[email protected]>
>> wrote:
>>
>>> Hi Madhan!
>>>
>>> this command is not working  *find /usr/local/ranger-0.5.0-admin -name
>>> "*.jar" -exec fgrep -H ServletException {} ;*
>>> find: missing argument to `-exec'
>>>
>>> On Fri, Aug 7, 2015 at 1:25 AM, Madhan Neethiraj <[email protected]>
>>> wrote:
>>>
>>>> Hafiz,
>>>>
>>>> Nothing seems to be wrong in the output. One thing I notice is the
>>>> addition of /home/jsp-api-6.0.20.jar in the command-line as a
>>>> classpath.
>>>>
>>>> + java -Dproc_rangeradmin -XX:MaxPermSize=256m -Xmx1024m -Xms1024m
>>>> -Dlogdir=/usr/local/ranger-0.5.0-admin/ews/logs/
>>>> -Dcatalina.base=/usr/local/ranger-0.5.0-admin/ews -cp
>>>> '/usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf:/usr/local/ranger-0.5.0-admin/ews/lib/*:/usr/local/ranger-0.5.0-admin/ews/ranger_jaas/*:/usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/ranger_jaas:/usr/lib/jvm/java-7-openjdk-amd64//lib/*:
>>>> /home/jsp-api-6.0.20.jar'
>>>> org.apache.ranger.server.tomcat.EmbeddedServer
>>>>
>>>>
>>>> I guess this could be because you have CLASSPATH environment variable
>>>> set to /home/jsp-api-6.0.20.jar. I don’t think this should result in the
>>>> error you face; but perhaps you can try to start after clearing CLASSPATH
>>>> environment variable?
>>>>
>>>> Also, ServletException class (which seems to be not found - per the
>>>> error) should be in file
>>>> /usr/local/ranger-0.5.0-admin/ews/lib/tomcat-embed-core–7.0.55.jar. Can you
>>>> run the following commands and send its output:
>>>>
>>>> find /usr/local/ranger-0.5.0-admin -name "*.jar" -exec fgrep -H
>>>> ServletException {} \;
>>>>
>>>> Madhan
>>>>
>>>> From: Hafiz Mujadid <[email protected]>
>>>> Reply-To: "[email protected]" <
>>>> [email protected]>
>>>> Date: Thursday, August 6, 2015 at 12:28 PM
>>>>
>>>> To: "[email protected]" <
>>>> [email protected]>
>>>> Subject: Re: ranger startup exception
>>>>
>>>> Hi
>>>>
>>>> I am stuck at above error. I could not resolve it. Anybody knows how to
>>>> figure it out ?
>>>>
>>>> Please help
>>>>
>>>> Thanks
>>>>
>>>> On Thu, Aug 6, 2015 at 11:48 PM, Hafiz Mujadid <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi here are the contents of '/tmp/ranger-admin-services-start.out'
>>>>> after executing command suggested by you
>>>>>
>>>>> + [[ -z start ]]
>>>>> + action=start
>>>>> ++ echo start
>>>>> ++ tr '[:lower:]' '[:upper:]'
>>>>> + action=START
>>>>> ++ readlink -f ews/ranger-admin-services.sh
>>>>> +
>>>>> realScriptPath=/usr/local/ranger-0.5.0-admin/ews/ranger-admin-services.sh
>>>>> ++ dirname /usr/local/ranger-0.5.0-admin/ews/ranger-admin-services.sh
>>>>> + realScriptDir=/usr/local/ranger-0.5.0-admin/ews
>>>>> ++ cd /usr/local/ranger-0.5.0-admin/ews/..
>>>>> ++ pwd
>>>>> + XAPOLICYMGR_DIR=/usr/local/ranger-0.5.0-admin
>>>>> + XAPOLICYMGR_EWS_DIR=/usr/local/ranger-0.5.0-admin/ews
>>>>> + RANGER_JAAS_LIB_DIR=/usr/local/ranger-0.5.0-admin/ews/ranger_jaas
>>>>> +
>>>>> RANGER_JAAS_CONF_DIR=/usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/ranger_jaas
>>>>> + JAVA_OPTS='  -XX:MaxPermSize=256m -Xmx1024m -Xms1024m '
>>>>> + '[' -f
>>>>> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/java_home.sh
>>>>> ']'
>>>>> + .
>>>>> /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/java_home.sh
>>>>> ++ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
>>>>> ++ JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
>>>>> ++ find /usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/
>>>>> -name 'ranger-admin-env*'
>>>>> + '[' /usr/lib/jvm/java-7-openjdk-amd64/ '!=' '' ']'
>>>>> + export
>>>>> PATH=/usr/lib/jvm/java-7-openjdk-amd64//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>>>>> +
>>>>> PATH=/usr/lib/jvm/java-7-openjdk-amd64//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>>>>> + echo /usr/lib/jvm/java-7-openjdk-amd64/
>>>>> + cd /usr/local/ranger-0.5.0-admin/ews
>>>>> + '[' '!' -d logs ']'
>>>>> + '[' START == START ']'
>>>>> + start
>>>>> + echo 'Apache Ranger Admin has started.'
>>>>> + exit
>>>>> + java -Dproc_rangeradmin -XX:MaxPermSize=256m -Xmx1024m -Xms1024m
>>>>> -Dlogdir=/usr/local/ranger-0.5.0-admin/ews/logs/
>>>>> -Dcatalina.base=/usr/local/ranger-0.5.0-admin/ews -cp
>>>>> '/usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf:/usr/local/ranger-0.5.0-admin/ews/lib/*:/usr/local/ranger-0.5.0-admin/ews/ranger_jaas/*:/usr/local/ranger-0.5.0-admin/ews/webapp/WEB-INF/classes/conf/ranger_jaas:/usr/lib/jvm/java-7-openjdk-amd64//lib/*:
>>>>> /home/jsp-api-6.0.20.jar'
>>>>> org.apache.ranger.server.tomcat.EmbeddedServer
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Aug 6, 2015 at 11:20 PM, Madhan Neethiraj <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> 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 <[email protected]>
>>>>>> Reply-To: "[email protected]" <
>>>>>> [email protected]>
>>>>>> Date: Thursday, August 6, 2015 at 10:58 AM
>>>>>> To: "[email protected]" <
>>>>>> [email protected]>
>>>>>> Subject: Re: ranger startup exception
>>>>>>
>>>>>> Hi
>>>>>>
>>>>>>
>>>>>> Waiting for help!!!
>>>>>>
>>>>>> On Thu, Aug 6, 2015 at 12:37 PM, Hafiz Mujadid <
>>>>>> [email protected]> 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 <[email protected]>
>>>>>>> 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. 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 <
>>>>>>>> [email protected]> 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 <[email protected]>
>>>>>>>>> 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 <
>>>>>>>>>> [email protected]> 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 <[email protected]>
>>>>>>>>>>> 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 <
>>>>>>>>>>>> [email protected]> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards: HAFIZ MUJADID
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards: HAFIZ MUJADID
>>>>
>>>
>>>
>>>
>>> --
>>> Regards: HAFIZ MUJADID
>>>
>>
>>
>>
>> --
>> Regards,
>> Gautam.
>>
>
>
>
> --
> Regards: HAFIZ MUJADID
>



-- 
Regards,
Gautam.

Reply via email to