-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
R3 Sprint 1
Error is caused by referencing old structure in spring config:
oom/kubernetes/config/docker/init/src/config/aai/data-router/dynamic/conf/entity-event-policy.xml:
<bean id="eepConfig" class="org.openecomp.datarouter.policy.EntityEventPolicyConfig" >
should be:
<bean id="eepConfig" class="org.onap.aai.datarouter.policy.EntityEventPolicyConfig" >
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.openecomp.datarouter.policy.EntityEventPolicyConfig] for bean with name 'eepConfig' defined in URL [file:/opt/app/data-router//conf/data-router/v1/entity-event-policy.xml]; nested exception is java.lang.ClassNotFoundException: org.openecomp.datarouter.policy.EntityEventPolicyConfig at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1352) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:597) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1445) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:975) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:752) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRuntimeSpringConfiguration.java:153) at grails.spring.BeanBuilder.createApplicationContext(BeanBuilder.java:593) at grails.spring.BeanBuilder$createApplicationContext.call(Unknown Source)
After making local edits:
21:02:28,101 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [ch.qos.logback.classic] to WARN 21:02:28,101 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [ch.qos.logback.core] to WARN 21:02:28,101 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [asyncEELF] to Logger[ROOT] 21:02:28,101 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 21:02:28,107 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1afd44cb - Registering current configuration as safe fallback point 2017-11-14 21:02:28.143:INFO:/:main: Initializing Spring root WebApplicationContext isosgiEnable= false DocService initialized successfully /opt/app/data-router/services/deployed/ /opt/app/data-router/services/deployed/ PropertiesService initialized successfully DocService initialized successfully UserDefinedJarService initialized successfully UserDefinedBeansDefService initialized successfully ComputeService::start Adding intercept strategies to the context Intercept strategies added to the context: SpringCamelContext(default-0) with spring id org.springframework.web.context.WebApplicationContext: --> [] RestletComponentFactory.getRestletComponent for key: default:0 RestletComponentFactory.getRestletComponent returning RestletComponent: org.apache.camel.component.restlet.RestletComponent@261a66b8 ComputeService::Started Adding route: data-router:echoService:v1 to context: SpringCamelContext(default-0) with spring id org.codehaus.groovy.grails.commons.spring.GrailsApplicationContext@67fc2aad ___ ____________________ / . \ /__ __/ ____// ____/ / /_\ \___/ / (____ )/ /___ /_/ \/____/ /_____/(_____/ Version: 2.0.0 AT&T's Java Services Container has initialized successfully and services are now available 2017-11-14 21:02:42.861:INFO:/:main: Initializing Spring FrameworkServlet 'spring' 2017-11-14 21:02:42.974:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@4f47d241{/,file:/opt/app/data-router/jetty/webapps/ajsc-temp.dir5933838314788453351/webapp/,AVAILABLE}{/opt/app/data-router//lib/ajsc.war} 2017-11-14 21:02:42.976:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/opt/app/data-router/extApps] at interval 10 2017-11-14 21:02:42.976:WARN:oejdp.ScanningAppProvider:main: Does not exist: file:/opt/app/data-router/extApps 2017-11-14 21:02:43.013:INFO:oejs.ServerConnector:main: Started ServerConnector@a97a895{SSL-http/1.1}{0.0.0.0:9502} 2017-11-14 21:02:43.014:INFO:oejs.Server:main: Started @19086ms