cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hybris 6.2 to 6.5 upgrade Error during server startup

0 Kudos
414

Hi,

We are upgrading from 6.2 to 6.5. After build is successfull, we are facing server start up issues which I believe are related to spring. Can you please assist us in resolving the issue.

Thanks.

 INFO  [localhost-startStop-1] [HybrisContextFactory] - Refreshing SpringContext (hybris Application context - master) took: (16.39 s)

 INFO  [localhost-startStop-1] [HybrisContextFactory] Initializing application Spring ApplicationContext for tenant master  took: (24.13 s)

 Jan 17, 2018 10:11:18 AM org.apache.catalina.core.StandardContext listenerStart

 SEVERE: Exception sending context initialized event to listener instance of class de.hybris.platform.spring.HybrisContextLoaderListener

 java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Class.java:264)

 at de.hybris.platform.spring.LazyInitOverrideBeanFactoryPostProcessor.forName(LazyInitOverrideBeanFactoryPostProcessor.java:90)

 at java.util.Optional.map(Optional.java:215)

 at de.hybris.platform.spring.LazyInitOverrideBeanFactoryPostProcessor.postProcessBeanFactory(LazyInitOverrideBeanFactoryPostProcessor.java:59)

 at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)

 at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:181)

 at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)

 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)

 at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95)

 at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:263)

 at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87)

 at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:708)

 at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:746)

 at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:680)

 at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:646)

 at de.hybris.platform.core.Registry.activateTenant(Registry.java:707)

 at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:554)

 at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:614)

 at de.hybris.platform.core.Registry.startup(Registry.java:432)

 at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:317)

 at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:203)

 at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:191)

 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)

 at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:87)

 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)

 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

 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.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod

 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
View Entire Topic
Former Member
0 Kudos

Remove all imports of type org.apache.commons.httpclient.HttpMethod and replace them with org.apache.httpcomponentsorg.apache.httpcomponents.HttpMethod. Check your spring xml files too maybe your using the old interface somewhere.

Hybris has updated their apache libs between your versions.

0 Kudos

I don't see those imports in our codebase at all.