'Ranger 2.2 admin - HTTP Status 404

Problems running Apache Ranger 2.2 admin

I'm trying to run Apache Ranger 2.2 admin, but I get an error when entering the main page. At the same time, I checked version 2.1 on the same machine, it works without problems. I also tried the SNAPSHOT version, the same error as 2.2

When entering the page http://host:6080 HTTP Status 404 – Not Found

Do you have any ideas where to look, how to fix it? Thanks! Ubuntu 18 In the catalina.out logs

May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer getKeyManagers
WARNING: Unable to read credential from credential store file [/opt/ranger/ranger-2.2.0-admin/ews/webapp/WEB-INF/classes/conf/.jceks/rangeradmin.jceks] for given alias:keyStoreCredentialAlias
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer getTrustManagers
WARNING: Config 'ranger.truststore.file' is not found or contains blank value!
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Deriving webapp folder from catalina.base property. folder=/opt/ranger/ranger-2.2.0-admin/ews/webapp
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Webapp file =/opt/ranger/ranger-2.2.0-admin/ews/webapp, webAppName = /
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Adding webapp [/] = path [/opt/ranger/ranger-2.2.0-admin/ews/webapp] .....
May 06, 2022 6:20:55 AM org.apache.catalina.core.StandardContext setPath
WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Finished init of webapp [/] = path [/opt/ranger/ranger-2.2.0-admin/ews/webapp].
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Name is empty. Setting Name Rule as 'DEFAULT'
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.EmbeddedServer startServer
INFO: Server Name : rangeradmin
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Starting Solr Setup
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: AUTHENTICATION_TYPE : null
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Solr Collection name provided is : ranger_audits
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Solr Config name provided is : ranger_audits
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: No. of replicas provided is : 1
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Max no of nodes per shards provided is : 1
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Solr time interval provided is : 60000
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper <init>
INFO: Provided custom configSet location : null
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper run
INFO: Started run method
May 06, 2022 6:20:55 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper run
SEVERE: Solr ZKHosts for Audit are empty. Please set property ranger.audit.solr.zookeepers
May 06, 2022 6:20:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-6080"]
May 06, 2022 6:20:55 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
May 06, 2022 6:20:55 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
May 06, 2022 6:20:55 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/8.5.69]
May 06, 2022 6:20:55 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
May 06, 2022 6:21:00 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
May 06, 2022 6:21:00 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
May 06, 2022 6:21:00 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
May 06, 2022 6:21:02 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.apache.ranger.service.AuthSessionService]; nested exception is java.io.FileNotFoundException: class path resource [org/apache/ranger/service/AbstractBaseResourceService.class] cannot be opened because it does not exist
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:189)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:247)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:112)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: class path resource [org/apache/ranger/service/AbstractBaseResourceService.class] cannot be opened because it does not exist
    at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:187)
    at org.springframework.core.type.classreading.SimpleMetadataReader.getClassReader(SimpleMetadataReader.java:55)
    at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:49)
    at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)
    at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:123)
    at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81)
    at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:696)
    at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getSuperClass(ConfigurationClassParser.java:1010)
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:341)
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:250)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:207)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:175)
    ... 18 more

May 06, 2022 6:21:02 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
May 06, 2022 6:21:02 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
May 06, 2022 6:21:02 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
May 06, 2022 6:21:02 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
WARNING: The web application [ROOT] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
May 06, 2022 6:21:02 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
WARNING: The web application [ROOT] registered the JDBC driver [org.apache.solr.client.solrj.io.sql.DriverImpl] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
May 06, 2022 6:21:02 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-6080"]


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source