Skip to Content
0
Former Member
Sep 23, 2016 at 10:51 PM

Getting error during server start after adding ASM addon ( assistedservicestorefront ) in Hybris 6.1

442 Views

Hi,

I have installed sap_aom_som_b2b_b2c receipe to test the ASM functionality and I getting error during server startup.

I have added the ASM addon to the yb2bacceleratorstorefront and activated the ASM related extensions.

Getting the following error during server startup. Everything looks fine but I am still getting the error.

 INFO: TLD skipped. URI: http://www.springframework.org/security/tags is already defined
 INFO  [localhost-startStop-1] [HybrisContextLoaderListener] *************************************************************
 INFO  [localhost-startStop-1] [HybrisContextLoaderListener] adding custom config locations [WEB-INF/config/web-application-config.xml,classpath:/acceleratorstorefrontcommons/web/spring/acceleratorstorefrontcommons-spring.xml,classpath:/addonsupport/web/spring/addonsupport-b2c-web-spring.xml,classpath:/assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml,classpath:/sapcorea
 ddon/web/spring/sapcoreaddon-web-spring.xml] for ctx Root WebApplicationContext - /yacceleratorstorefront: startup date [Wed Dec 31 19:00:00 EST 1969]; parent: hybris Application context - master
 INFO  [localhost-startStop-1] [HybrisContextLoaderListener] *************************************************************
 INFO  [localhost-startStop-1] [LazyInitOverrideBeanFactoryPostProcessor] Setting lazy-init='false' for configuration beans
 WARN  [localhost-startStop-1] [TenantIgnoreXmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storefrontMessageSource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not auto
 wire field: private org.springframework.context.ApplicationContext de.hybris.platform.yacceleratorstorefront.web.theme.StorefrontResourceBundleSource.appContext; **nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class
 path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter
 ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed**
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storefrontMessageSource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.ApplicationContext de.hybris.platform.yacceleratorstorefront.web.theme.StorefrontResourceBundleSource.a
 ppContext; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: **Cannot find class [de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de
 .hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter**
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:629) ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:468) ~[spring-context-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434) ~[spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) [spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:148) [coreserver.jar:?]
         at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:124) [coreserver.jar:?]
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [spring-web-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:79) [coreserver.jar:?]
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016) [catalina.jar:7.0.59]
         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524) [catalina.jar:7.0.59]
         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.59]
         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) [catalina.jar:7.0.59]
         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) [catalina.jar:7.0.59]
         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_102]
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
 Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.ApplicationContext de.hybris.platform.yacceleratorstorefront.web.theme.StorefrontResourceBundleSource.appContext; **nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.assistedservicestorefront.filter.A
 ssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter**
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         ... 24 more
 Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de.hybris.platform.ass
 istedservicestorefront.filter.AssistedServiceFilter
         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1328) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:622) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1399) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:434) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:404) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:186) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1105) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         ... 24 more
 Caused by: java.lang.ClassNotFoundException: de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) ~[catalina.jar:7.0.59]
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ~[catalina.jar:7.0.59]
         at org.springframework.util.ClassUtils.forName(ClassUtils.java:249) ~[spring-core-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1351) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1320) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:622) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1399) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:434) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:404) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:186) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1105) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.9.RELEASE.jar:4.1.9.RELEASE]
         ... 24 more
 Sep 23, 2016 4:40:00 PM org.apache.catalina.core.StandardContext listenerStart
 SEVERE: Exception sending context initialized event to listener instance of class de.hybris.platform.yacceleratorstorefront.filters.HybrisStorefrontContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storefrontMessageSource': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.ApplicationContext de.hybris.platform.yacceleratorstorefront.web.theme.StorefrontResourceBundleSource.a
 ppContext; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: **Cannot find class [de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de
 .hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter**
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
         at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:629)
         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:468)
         at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)
         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
         at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:148)
         at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:124)
         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
         at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:79)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
         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:266)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
         at java.lang.Thread.run(Thread.java:745)
 Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.ApplicationContext de.hybris.platform.yacceleratorstorefront.web.theme.StorefrontResourceBundleSource.appContext; nested exception is **org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.assistedservicestorefront.filter.A
 ssistedServiceFilter**] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; nested exception is java.lang.ClassNotFoundException: de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
         at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
         ... 24 more
 Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter] for bean with name 'assistedServiceFilter' defined in class path resource [assistedservicestorefront/web/spring/assistedservicestorefront-web-spring.xml]; **nested exception is java.lang.ClassNotFoundException: de.hybris.platform.ass
 istedservicestorefront.filter.AssistedServiceFilter**
         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1328)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:622)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:591)
         at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1399)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:434)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:404)
         at org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:186)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1105)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)
         at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
         ... 26 more
 Caused by: java.lang.ClassNotFoundException: de.hybris.platform.assistedservicestorefront.filter.AssistedServiceFilter
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
         at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
         at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
         at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1351)
         at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1320)
         ... 36 more