Re: master branch compilation issue

2015-08-05 Thread Hafiz Mujadid
thanks it solved using  Alok's suggested changes in pom file


On Wed, Aug 5, 2015 at 10:19 AM, Alok Lal  wrote:

> Hafiz:
>
> This is known issue 
> with maven-assembly plugin.  To be precise certain combinations of maven
> version and assembly plugin version lead to this problem.  We should really
> fix the our pom file so that we have latest versions of plugins in use.  Do
> consider raising a JIRA along those lines.
>
> For now apply the following patch to ranger pom and it should solve your
> problem.
>
>
> diff --git a/pom.xml b/pom.xml
> index 2ae8d3d..4b73a61 100644
> --- a/pom.xml
> +++ b/pom.xml
> @@ -369,7 +369,7 @@
>
>
>   maven-assembly-plugin
> - 2.2-beta-5
> + 2.3
>   
> 
>   src/main/assembly/hdfs-agent.xml
>
>
> If this doesn’t get you over the hump then post the new error and also
> provide the following:
>
>- Version of your maven version.
>- OS where you are trying to build this.
>- Relevant contents of you ~/.m2/settings.xml file, if any.
>
> Thanks
>
> From: Hafiz Mujadid
> Reply-To: "user@ranger.incubator.apache.org"
> Date: Tuesday, August 4, 2015 at 9:45 PM
> To: "user@ranger.incubator.apache.org"
>
> Subject: Re: master branch compilation issue
>
> I am running simply this command
> mvn clean compile package assembly:assembly
>
> and this happens at the end of compilation
>
> and these are last few lines
>
>
> [WARNING] Entry:
> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaConnectionMgr.java
> longer than 100 characters.
> [WARNING] Entry:
> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaClient.java
> longer than 100 characters.
> [WARNING] Entry:
> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/RangerServiceKafka.java
> longer than 100 characters.
> [WARNING] Entry:
> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/authorization/kafka/authorizer/RangerKafkaAuthorizer.java
> longer than 100 characters.
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] ranger  FAILURE [02:09
> min]
> [INFO] Jdbc SQL Connector  SUCCESS [
>  4.969 s]
> [INFO] Credential Support  SUCCESS [
> 12.146 s]
> [INFO] ranger_solrj .. SUCCESS [
>  8.150 s]
> [INFO] Audit Component ... SUCCESS [
>  5.228 s]
> [INFO] Common library for Plugins  SUCCESS [
> 17.187 s]
> [INFO] Installer Support Component ... SUCCESS [
>  3.728 s]
> [INFO] Credential Builder  SUCCESS [
>  5.682 s]
> [INFO] Embedded Web Server Invoker ... SUCCESS [
>  1.506 s]
> [INFO] Key Management Service  SUCCESS [08:21
> min]
> [INFO] HBase Security Plugin . SUCCESS [
> 10.581 s]
> [INFO] Hdfs Security Plugin .. SUCCESS [
>  8.737 s]
> [INFO] Hive Security Plugin .. SUCCESS [
>  6.787 s]
> [INFO] Knox Security Plugin .. SUCCESS [
>  5.038 s]
> [INFO] Storm Security Plugin . SUCCESS [
>  2.877 s]
> [INFO] YARN Security Plugin .. SUCCESS [
>  2.921 s]
> [INFO] Ranger Util ... SUCCESS [
>  2.724 s]
> [INFO] Unix Authentication Client  SUCCESS [
>  1.762 s]
> [INFO] Security Admin Web Application  SUCCESS [01:05
> min]
> [INFO] SOLR Security Plugin .. SUCCESS [
>  7.164 s]
> [INFO] Unix User Group Synchronizer .. SUCCESS [
>  3.874 s]
> [INFO] Unix Authentication Service ... SUCCESS [
>  1.944 s]
> [INFO] KMS Security Plugin ... SUCCESS [
>  2.862 s]
> [INFO] Unix Native Authenticator . SUCCESS [
>  1.460 s]
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 13:41 min
> [INFO] Finished at: 2015-08-04T23:40:20+05:00
> [INFO] Final Memory: 177M/559M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly
> (default-cli) on project ranger: Failed to create assembly: Error creating
> assembly archive src: Problem creating TAR: request to write '8192' bytes
> exceeds size in header of '566424' bytes -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of

Re: master branch compilation issue

2015-08-05 Thread Don Bosco Durai
Hafiz, can you create a JIRA for this issue?

Thanks

Bosco


From:  Hafiz Mujadid 
Reply-To:  "user@ranger.incubator.apache.org"

Date:  Wednesday, August 5, 2015 at 12:49 AM
To:  "user@ranger.incubator.apache.org" 
Subject:  Re: master branch compilation issue

> thanks it solved using  Alok's suggested changes in pom file
> 
> 
> On Wed, Aug 5, 2015 at 10:19 AM, Alok Lal  wrote:
>> Hafiz:
>> 
>> This is known issue 
>> with maven-assembly plugin.  To be precise certain combinations of maven
>> version and assembly plugin version lead to this problem.  We should really
>> fix the our pom file so that we have latest versions of plugins in use.  Do
>> consider raising a JIRA along those lines.
>> 
>> For now apply the following patch to ranger pom and it should solve your
>> problem.
>> 
>> 
>> diff --git a/pom.xml b/pom.xml
>> index 2ae8d3d..4b73a61 100644
>> --- a/pom.xml
>> +++ b/pom.xml
>> @@ -369,7 +369,7 @@
>>
>>
>>   maven-assembly-plugin
>> - 2.2-beta-5
>> + 2.3
>>   
>> 
>>   src/main/assembly/hdfs-agent.xml
>> 
>> 
>> If this doesn¹t get you over the hump then post the new error and also
>> provide the following:
>> * Version of your maven version.
>> * OS where you are trying to build this.
>> * Relevant contents of you ~/.m2/settings.xml file, if any.
>> Thanks
>> 
>> From: Hafiz Mujadid
>> Reply-To: "user@ranger.incubator.apache.org"
>> Date: Tuesday, August 4, 2015 at 9:45 PM
>> To: "user@ranger.incubator.apache.org"
>> 
>> Subject: Re: master branch compilation issue
>> 
>> I am running simply this command
>> mvn clean compile package assembly:assembly
>> 
>> and this happens at the end of compilation
>> 
>> and these are last few lines
>> 
>> 
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/
>> client/ServiceKafkaConnectionMgr.java longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/
>> client/ServiceKafkaClient.java longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/
>> RangerServiceKafka.java longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/authorization/k
>> afka/authorizer/RangerKafkaAuthorizer.java longer than 100 characters.
>> [INFO] 
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] ranger  FAILURE [02:09
>> min]
>> [INFO] Jdbc SQL Connector  SUCCESS [  4.969
>> s]
>> [INFO] Credential Support  SUCCESS [ 12.146
>> s]
>> [INFO] ranger_solrj .. SUCCESS [  8.150
>> s]
>> [INFO] Audit Component ... SUCCESS [  5.228
>> s]
>> [INFO] Common library for Plugins  SUCCESS [ 17.187
>> s]
>> [INFO] Installer Support Component ... SUCCESS [  3.728
>> s]
>> [INFO] Credential Builder  SUCCESS [  5.682
>> s]
>> [INFO] Embedded Web Server Invoker ... SUCCESS [  1.506
>> s]
>> [INFO] Key Management Service  SUCCESS [08:21
>> min]
>> [INFO] HBase Security Plugin . SUCCESS [ 10.581
>> s]
>> [INFO] Hdfs Security Plugin .. SUCCESS [  8.737
>> s]
>> [INFO] Hive Security Plugin .. SUCCESS [  6.787
>> s]
>> [INFO] Knox Security Plugin .. SUCCESS [  5.038
>> s]
>> [INFO] Storm Security Plugin . SUCCESS [  2.877
>> s]
>> [INFO] YARN Security Plugin .. SUCCESS [  2.921
>> s]
>> [INFO] Ranger Util ... SUCCESS [  2.724
>> s]
>> [INFO] Unix Authentication Client  SUCCESS [  1.762
>> s]
>> [INFO] Security Admin Web Application  SUCCESS [01:05
>> min]
>> [INFO] SOLR Security Plugin .. SUCCESS [  7.164
>> s]
>> [INFO] Unix User Group Synchronizer .. SUCCESS [  3.874
>> s]
>> [INFO] Unix Authentication Service ... SUCCESS [  1.944
>> s]
>> [INFO] KMS Security Plugin ... SUCCESS [  2.862
>> s]
>> [INFO] Unix Native Authenticator . SUCCESS [  1.460
>> s]
>> [INFO] 
>> 
>> [INFO] BUILD FAILURE
>> [INFO] 
>> 
>> [INFO] Total time: 13:41 min
>> [INFO] Finished at: 2015-08-04T23:40:20+05:00
>> [INFO] Final Memory: 177M/559M
>> [INFO] 
>> ---

Re: master branch compilation issue

2015-08-05 Thread Hafiz Mujadid
Hi

I have created a jira against this issue
https://issues.apache.org/jira/browse/RANGER-600

On Wed, Aug 5, 2015 at 10:37 PM, Don Bosco Durai  wrote:

> Hafiz, can you create a JIRA for this issue?
>
> Thanks
>
> Bosco
>
>
> From: Hafiz Mujadid 
> Reply-To: "user@ranger.incubator.apache.org" <
> user@ranger.incubator.apache.org>
> Date: Wednesday, August 5, 2015 at 12:49 AM
>
> To: "user@ranger.incubator.apache.org" 
> Subject: Re: master branch compilation issue
>
> thanks it solved using  Alok's suggested changes in pom file
>
>
> On Wed, Aug 5, 2015 at 10:19 AM, Alok Lal  wrote:
>
>> Hafiz:
>>
>> This is known issue 
>> with maven-assembly plugin.  To be precise certain combinations of maven
>> version and assembly plugin version lead to this problem.  We should really
>> fix the our pom file so that we have latest versions of plugins in use.  Do
>> consider raising a JIRA along those lines.
>>
>> For now apply the following patch to ranger pom and it should solve your
>> problem.
>>
>>
>> diff --git a/pom.xml b/pom.xml
>> index 2ae8d3d..4b73a61 100644
>> --- a/pom.xml
>> +++ b/pom.xml
>> @@ -369,7 +369,7 @@
>>
>>
>>   maven-assembly-plugin
>> - 2.2-beta-5
>> + 2.3
>>   
>> 
>>   src/main/assembly/hdfs-agent.xml
>>
>>
>> If this doesn’t get you over the hump then post the new error and also
>> provide the following:
>>
>>- Version of your maven version.
>>- OS where you are trying to build this.
>>- Relevant contents of you ~/.m2/settings.xml file, if any.
>>
>> Thanks
>>
>> From: Hafiz Mujadid
>> Reply-To: "user@ranger.incubator.apache.org"
>> Date: Tuesday, August 4, 2015 at 9:45 PM
>> To: "user@ranger.incubator.apache.org"
>>
>> Subject: Re: master branch compilation issue
>>
>> I am running simply this command
>> mvn clean compile package assembly:assembly
>>
>> and this happens at the end of compilation
>>
>> and these are last few lines
>>
>>
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaConnectionMgr.java
>> longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/client/ServiceKafkaClient.java
>> longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/services/kafka/RangerServiceKafka.java
>> longer than 100 characters.
>> [WARNING] Entry:
>> ranger-0.5.0-src/plugin-kafka/src/main/java/org/apache/ranger/authorization/kafka/authorizer/RangerKafkaAuthorizer.java
>> longer than 100 characters.
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] ranger  FAILURE [02:09
>> min]
>> [INFO] Jdbc SQL Connector  SUCCESS [
>>  4.969 s]
>> [INFO] Credential Support  SUCCESS [
>> 12.146 s]
>> [INFO] ranger_solrj .. SUCCESS [
>>  8.150 s]
>> [INFO] Audit Component ... SUCCESS [
>>  5.228 s]
>> [INFO] Common library for Plugins  SUCCESS [
>> 17.187 s]
>> [INFO] Installer Support Component ... SUCCESS [
>>  3.728 s]
>> [INFO] Credential Builder  SUCCESS [
>>  5.682 s]
>> [INFO] Embedded Web Server Invoker ... SUCCESS [
>>  1.506 s]
>> [INFO] Key Management Service  SUCCESS [08:21
>> min]
>> [INFO] HBase Security Plugin . SUCCESS [
>> 10.581 s]
>> [INFO] Hdfs Security Plugin .. SUCCESS [
>>  8.737 s]
>> [INFO] Hive Security Plugin .. SUCCESS [
>>  6.787 s]
>> [INFO] Knox Security Plugin .. SUCCESS [
>>  5.038 s]
>> [INFO] Storm Security Plugin . SUCCESS [
>>  2.877 s]
>> [INFO] YARN Security Plugin .. SUCCESS [
>>  2.921 s]
>> [INFO] Ranger Util ... SUCCESS [
>>  2.724 s]
>> [INFO] Unix Authentication Client  SUCCESS [
>>  1.762 s]
>> [INFO] Security Admin Web Application  SUCCESS [01:05
>> min]
>> [INFO] SOLR Security Plugin .. SUCCESS [
>>  7.164 s]
>> [INFO] Unix User Group Synchronizer .. SUCCESS [
>>  3.874 s]
>> [INFO] Unix Authentication Service ... SUCCESS [
>>  1.944 s]
>> [INFO] KMS Security Plugin ... SUCCESS [
>>  2.862 s]
>> [INFO] Unix Native Authenticator . SUCCESS [
>>  1.460 s]
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> --

CVEs fixed in Ranger 0.5

2015-08-05 Thread Velmurugan Periasamy
Ranger Community:

Please see below details.

CVE-2015-0265: Apache Ranger code injection vulnerability

---
Severity: Important
Vendor: The Apache Software Foundation
Versions Affected: 0.4.0 version of Apache Ranger
Users affected: All admin users of ranger policy admin tool
Description: Unauthorized users can send some javascript code to be executed
in ranger policy admin tool admin sessions
Fix detail: Added logic to sanitize the user input
Mitigation: Users should upgrade to 0.5.0+ version of Apache Ranger with the
fix
Credit: Thanks to Jakub Kałużny from SecuRing for reporting this issue

CVE-2015-0266: Apache Ranger direct url access vulnerability

-
Severity: Important
Vendor: The Apache Software Foundation
Versions Affected: 0.4.0 version of Apache Ranger
Users affected: All users of ranger policy admin tool
Description: Regular users can type in the URL of modules that are
accessible only to admin users
Fix detail: Added logic in the backend to verify user access
Mitigation: Users should upgrade to 0.5.0+ version of Apache Ranger with the
fix
Credit: Thanks to Jakub Kałużny from SecuRing for reporting this issue

Thank you,
Vel




ranger startup exception

2015-08-05 Thread Hafiz Mujadid
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


Re: ranger startup exception

2015-08-05 Thread Gautam Borad
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 
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.


Re: ranger startup exception

2015-08-05 Thread Hafiz Mujadid
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  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 
> 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


Re: ranger startup exception

2015-08-05 Thread Gautam Borad
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 
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  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 
>> 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.


Re: ranger startup exception

2015-08-05 Thread Hafiz Mujadid
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  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 
> 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  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 
>>> 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