When you are getting an error while starting hybris, you would need to stop solr server manually from command line.
org.springframework.beans.FatalBeanException: Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'defaultSolrServerService' defined in class path resource [global-solrserver-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.solrserver.SolrServerException: Error while executing Solr start command for instance [name: default, hostname: localhost, port: 8983]
at de.hybris.platform.core.HybrisContextFactory.build(HybrisContextFactory.java:314) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.buildSelf(HybrisContextFactory.java:186) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.build(HybrisContextFactory.java:172) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached(HybrisContextHolder.java:131) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:110) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.getSingletonGlobalApplicationContext(Registry.java:1085) ~[coreserver.jar:?]
at de.hybris.platform.cache.impl.RegionCacheAdapter.getController(RegionCacheAdapter.java:73) ~[coreserver.jar:?]
at de.hybris.platform.cache.impl.RegionCacheAdapter.clear(RegionCacheAdapter.java:285) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.shutdownCache(AbstractTenant.java:1197) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doShutdown(AbstractTenant.java:1071) [coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doShutDown(AbstractTenant.java:1014) [coreserver.jar:?]
at de.hybris.platform.core.Registry.destroy(Registry.java:318) [coreserver.jar:?]
at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:74) [coreserver.jar:?]
at de.hybris.platform.util.RedeployUtilities$1.run(RedeployUtilities.java:38) [coreserver.jar:?]
Steps to resolve this issue:
- Open the browser and run http://localhost:8983/solr/#/
- If the solr is up, the page will render with solr server details.
- Go to the hybris installation home directory, where the solr was not shutdown properly and run the following command
${HYBRIS_HOME}\bin\platform>ant stopSolrServer