Details
-
Bug
-
Status: Closed
-
Highest
-
Resolution: Done
-
Beijing Release
-
ONAP APPC WiindRiver lab
Description
Version aaf.cadi.shiro is 2.1.0 is currently being utilized with the ONAP APPC installation running on ODL Nitrogen. During startup the following error occurs:
2018-04-16 19:09:55,399 | ERROR | ender-1-thread-3 | EnvironmentLoader | 131 - org.apache.shiro.web - 1.3.2 - - | Shiro environment initialization failed
org.apache.shiro.config.ConfigurationException: Unable to instantiate class [org.onap.aaf.cadi.shiro.AAFRealm] for object named 'tokenAuthRealm'. Please ensure you've specified the fully qualified class name correctly.
at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:309)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.ReflectionBuilder$InstantiationStatement.doExecute(ReflectionBuilder.java:927)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.ReflectionBuilder$Statement.execute(ReflectionBuilder.java:887)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.ReflectionBuilder$BeanConfigurationProcessor.execute(ReflectionBuilder.java:765)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:260)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:167)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:130)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:108)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:94)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:46)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)[130:org.apache.shiro.core:1.3.2]
at org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment.createIniFromClusteredAppConfig(KarafIniWebEnvironment.java:62)[179:org.opendaylight.aaa.shiro:0.6.1]
at org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment.init(KarafIniWebEnvironment.java:79)[179:org.opendaylight.aaa.shiro:0.6.1]
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:45)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.util.LifecycleUtils.init(LifecycleUtils.java:40)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.web.env.EnvironmentLoader.createEnvironment(EnvironmentLoader.java:221)[131:org.apache.shiro.web:1.3.2]
at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:133)[131:org.apache.shiro.web:1.3.2]
at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)[131:org.apache.shiro.web:1.3.2]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$3.call(HttpServiceContext.java:354)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$3.call(HttpServiceContext.java:350)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.callContextInitialized(HttpServiceContext.java:349)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)[150:org.eclipse.jetty.server:9.2.21.v20170120]
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)[151:org.eclipse.jetty.servlet:9.2.21.v20170120]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.startContext(HttpServiceContext.java:601)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)[150:org.eclipse.jetty.server:9.2.21.v20170120]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:260)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[155:org.eclipse.jetty.util:9.2.21.v20170120]
at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:304)[296:org.ops4j.pax.web.pax-web-jetty:4.3.4]
at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:1096)[298:org.ops4j.pax.web.pax-web-runtime:4.3.4]
at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:417)[298:org.ops4j.pax.web.pax-web-runtime:4.3.4]
at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:380)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:692)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:237)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:182)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:135)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:101)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:219)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.WebObserver$1.doStart(WebObserver.java:179)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.extender.SimpleExtension.start(SimpleExtension.java:59)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:281)[294:org.ops4j.pax.web.pax-web-extender-war:4.3.4]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_162]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_162]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_162]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_162]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_162]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_162]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_162]
Caused by: org.apache.shiro.util.UnknownClassException: Unable to load class named [org.onap.aaf.cadi.shiro.AAFRealm] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found.
at org.apache.shiro.util.ClassUtils.forName(ClassUtils.java:152)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:168)[130:org.apache.shiro.core:1.3.2]
at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:302)[130:org.apache.shiro.core:1.3.2]
... 54 more
Attachments
Issue Links
- blocks
-
APPC-404 Integrated with AAF
-
- Closed
-