Support Questions
Find answers, ask questions, and share your expertise

Ranger-admin faield to start with no global.xml found error

Rising Star

Hi,

I have installed Ranger-0.4.0 via ambari-2.0.2 with HDP-2.2.4.23-5.

Installation is successful but Ranger-admin failing to start with below error

INFO: validateJarFile(/usr/hdp/2.2.4.23-5/ranger-admin/ews/webapp/WEB-INF/lib/javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class Aug 18, 2016 1:09:07 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/hdp/2.2.4.23-5/ranger-admin/ews/webapp/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class Aug 18, 2016 1:09:07 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment INFO: No global web.xml found Aug 18, 2016 1:09:07 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/]]

Please help me with this

1 REPLY 1

Rising Star

I see different observation. I am able to start Ranger admin from command line but cant from Ambari.

Isee below error when starting from Ambari.

Aug 19, 2016 9:30:39 AM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 6 more Caused by: java.lang.NullPointerException

But it is successfully starting when starting from comamdn line via below command

sh /usr/hdp/2.2.4.23-5/ranger-admin/ews/start-ranger-admin.sh

Please help me on this