Unable to start Hybris Tomcat Server due to Solr Server issue
Sometimes, when we start hybris server, it does not start properly, instead it might end up with an error as below
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultSolrServerService' defined in class path resource Solr server is still not running after calling start command
After 5.5 version, Hybris has come up with a standalone Solr server.
Hybris server tries to start the Solr server when we start Hybris server depending upon the property set in local.properties
Similarly, when we stop Hybris server, hybris server sends a signal to the solr server to stop
Sometimes, the signal is not sent by the hybris server to the solr server, which in turn results in a hung state.
This issue generally occurs when Solr server is not stopped when we stopped Hybris server and is still running in the background
In this case, when we start hybris server, it will try to start the solr server but already running solr server is not able to instantiate/register the (bean) services which are required by the hybris server to communicate with the solr.
Hence it does not allow hybris server to start smoothly
Solution 1 :
If we don’t want to use Solr, then set below key-value in hybris\config\local.properties
This will start the hybris server without starting Solr and hence Product search functionality through Solr will not be working.
Solution 2 :
If we want to use Solr, We can just run below command from hybris\bin\platform folder
After running this command, we can start Hybris server smoothly.