2020-09-26 18:17发布
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
引用
大家好,从5.2.0.2版本迁移代码后,hybris 5.7启动期间,我们会遇到相同的问题。
我们已经按照Spring doc( http://docs.spring.io/spring/docs/4.0.9.RELEASE/javadoc-api/org/springframework/http/converter/ json/MappingJackson2HttpMessageConverter.html )添加到我们的Spring xml文件中。
我们面临的错误是:
INFO [localhost-startStop-1] [HybrisContextFactory]初始化用于承租方主机的应用程序Spring ApplicationContext:(56,46 s)2016年2月12日上午11:30:14 org.apache.catalina.core.StandardContext listenerStart SEVERE :将上下文初始化事件发送到goep.hm.storefront.filters.HybrisStorefrontContextLoaderListener类java.lang.NoClassDefFoundError的侦听器实例的异常:org/springframework/http/converter/json/MappingJacksonHttpMessageConverter at java.lang.Class.getDeclaredMethods0(本机方法) org.springframework上java.lang.Class.getDeclaredMethods(Class.java:1975)上的java.lang.Class.privateGetDeclaredMethods(Class.java:2701)org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:572)上的java.lang.Class.getDeclaredMethods(Class.java:1975) org.org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:475)的org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:502)的org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:475)的组织。 弹簧 ramework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanwork.atBean65.support.org) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapable)的AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038) 476)在org.springframework.org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:303)在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)在org.springframework。 豆子。 org.springframework.beans.factors.support.DefaultListableBeanFactory.preInstantiateSingletons(org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)的factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:194) org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)的DefaultListableBeanFactory.java:755)org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)的de.hybris.platform .core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:98)位于de.hybris.platform.core.HybrisContextFactory $ ApplicationContextFactory.build(HybrisContextFactory.java:266)位于de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolderjava。 :90),位于de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:686),位于de.hybris.platform.core.AbstractTenant。 位于de.hybris.platform.core。处的doStartupSafe(AbstractTenant.java:724)位于de.hybris处的de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:639)处的AbstractTenant.doStartUp(AbstractTenant.java:658) de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:544)上的.platform.core.Registry.activateTenant(Registry.java:700),de.hybris.platform.core.Registry.activateMasterTenant(Registry.java) :607),位于de.hybris.platform.core.Registry.startup(Registry.java:422),位于de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:237),位于de.hybris.platform.spring。 HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:135)位于de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:125)位于org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener。 .hybris.platform.spring.HybrisContextLoaderListener.contextIni org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)的tialized(HybrisContextLoaderListener.java:80)org.apache的org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)的 org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)上的.catalina.util.LifecycleBase.start(LifecycleBase.java:150)在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 $ java.lang.Thread.run(Thread.java:745)上的Worker.run(ThreadPoolExecutor.java:617)原因:java.lang.ClassNotFoundException:java.net上的org.springframework.http.converter.json.MappingJacksonHttpMessageConverter。 位于de.hybris.bootstrap.loader.YURLClassL的java.lang.ClassLoader.loadClass(ClassLoader.java:424)的URLClassLoader.findClass(URLClassLoader.java:381) oader.loadRegisterAndResolveClass(YURLClassLoader.java:88)at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:75)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)... 44更多
感谢您的帮助。
您好,您能够解决此问题吗? 如果是,请让我知道解决方法。 我们在5.7中也面临着同样的问题
感谢Malli
最多设置5个标签!
大家好,从5.2.0.2版本迁移代码后,hybris 5.7启动期间,我们会遇到相同的问题。
我们已经按照Spring doc( http://docs.spring.io/spring/docs/4.0.9.RELEASE/javadoc-api/org/springframework/http/converter/ json/MappingJackson2HttpMessageConverter.html )添加到我们的Spring xml文件中。
我们面临的错误是:
INFO [localhost-startStop-1] [HybrisContextFactory]初始化用于承租方主机的应用程序Spring ApplicationContext:(56,46 s)2016年2月12日上午11:30:14 org.apache.catalina.core.StandardContext listenerStart SEVERE :将上下文初始化事件发送到goep.hm.storefront.filters.HybrisStorefrontContextLoaderListener类java.lang.NoClassDefFoundError的侦听器实例的异常:org/springframework/http/converter/json/MappingJacksonHttpMessageConverter at java.lang.Class.getDeclaredMethods0(本机方法) org.springframework上java.lang.Class.getDeclaredMethods(Class.java:1975)上的java.lang.Class.privateGetDeclaredMethods(Class.java:2701)org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:572)上的java.lang.Class.getDeclaredMethods(Class.java:1975) org.org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:475)的org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:502)的org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:475)的组织。 弹簧 ramework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanwork.atBean65.support.org) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapable)的AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038) 476)在org.springframework.org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:303)在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)在org.springframework。 豆子。 org.springframework.beans.factors.support.DefaultListableBeanFactory.preInstantiateSingletons(org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)的factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:194) org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)的DefaultListableBeanFactory.java:755)org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)的de.hybris.platform .core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:98)位于de.hybris.platform.core.HybrisContextFactory $ ApplicationContextFactory.build(HybrisContextFactory.java:266)位于de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolderjava。 :90),位于de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:686),位于de.hybris.platform.core.AbstractTenant。 位于de.hybris.platform.core。处的doStartupSafe(AbstractTenant.java:724)位于de.hybris处的de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:639)处的AbstractTenant.doStartUp(AbstractTenant.java:658) de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:544)上的.platform.core.Registry.activateTenant(Registry.java:700),de.hybris.platform.core.Registry.activateMasterTenant(Registry.java) :607),位于de.hybris.platform.core.Registry.startup(Registry.java:422),位于de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:237),位于de.hybris.platform.spring。 HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:135)位于de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:125)位于org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener。 .hybris.platform.spring.HybrisContextLoaderListener.contextIni org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)的tialized(HybrisContextLoaderListener.java:80)org.apache的org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)的 org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)上的.catalina.util.LifecycleBase.start(LifecycleBase.java:150)在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 $ java.lang.Thread.run(Thread.java:745)上的Worker.run(ThreadPoolExecutor.java:617)原因:java.lang.ClassNotFoundException:java.net上的org.springframework.http.converter.json.MappingJacksonHttpMessageConverter。 位于de.hybris.bootstrap.loader.YURLClassL的java.lang.ClassLoader.loadClass(ClassLoader.java:424)的URLClassLoader.findClass(URLClassLoader.java:381) oader.loadRegisterAndResolveClass(YURLClassLoader.java:88)at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:75)at java.lang.ClassLoader.loadClass(ClassLoader.java:357)... 44更多
感谢您的帮助。
您好,您能够解决此问题吗? 如果是,请让我知道解决方法。 我们在5.7中也面临着同样的问题
感谢Malli
一周热门 更多>