title: Hybris Solr failed to load core
body: <p>I am new to hybris and trying to load my apparel store data. Whenever I perform an ant initialize, I get the following error:</p>
  
  <pre><code>org.apache.solr.common.SolrException: Could not load conf for core mProduct: Plugin init failure for [schema.xml] fieldType "string": Error loading class 'de.hybris.platform.solrfacetsearch.ysolr.similarity.FixedTFIDFSimilarityFactory'. Schema file is E:\hybris\config\solr\instances\default\configsets\default\conf\schema.xml
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:80)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:725)
      at org.apache.solr.core.CoreContainer.create(CoreContainer.java:701)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:629)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:214)
      at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:194)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
      at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:675)
      at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:443)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:210)
      at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml] fieldType "string": Error loading class 'de.hybris.platform.solrfacetsearch.ysolr.similarity.FixedTFIDFSimilarityFactory'. Schema file is E:\hybris\config\solr\instances\default\configsets\default\conf\schema.xml
      at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:596)
      at org.apache.solr.schema.IndexSchema.&lt;init&gt;(IndexSchema.java:175)
      at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
      at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
      at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:104)
      at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:75)
      ... 30 more
  Caused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml] fieldType "string": Error loading class 'de.hybris.platform.solrfacetsearch.ysolr.similarity.FixedTFIDFSimilarityFactory'
      at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:178)
      at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:489)
      ... 35 more
  Caused by: org.apache.solr.common.SolrException: Error loading class 'de.hybris.platform.solrfacetsearch.ysolr.similarity.FixedTFIDFSimilarityFactory'
      at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:491)
      at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:560)
      at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:525)
      at org.apache.solr.schema.IndexSchema.readSimilarity(IndexSchema.java:977)
      at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:109)
      at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:52)
      at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:152)
      ... 36 more
  Caused by: java.lang.ClassNotFoundException: de.hybris.platform.solrfacetsearch.ysolr.similarity.FixedTFIDFSimilarityFactory
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:475)
      ... 42 more
  </code></pre>
  
  <p>This is how my localextensions.xml looks like:</p>
  
  <pre><code>&lt;hybrisconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="resources/schemas/extensions.xsd"&gt;
      &lt;extensions&gt;
          &lt;path dir="${HYBRIS_BIN_DIR}" /&gt;
          &lt;path dir="${HYBRIS_BIN_DIR}/custom" /&gt;
  
  
          &lt;!-- ext-platform --&gt;
          &lt;extension name="admincockpit" /&gt;
          &lt;extension name="backoffice" /&gt;
          &lt;extension name="cockpit" /&gt;
          &lt;extension name="hmc" /&gt;
          &lt;extension name="mcc" /&gt;
          &lt;extension name="platformhmc" /&gt;
          &lt;extension name="amazoncloud" /&gt;
  
          &lt;!-- ext-commerce --&gt;
          &lt;extension name="btg" /&gt;
          &lt;extension name="btgcockpit" /&gt;
          &lt;extension name="commercesearch" /&gt;
          &lt;extension name="commercesearchbackoffice" /&gt;
          &lt;extension name="commercesearchhmc" /&gt;
          &lt;extension name="commerceservices" /&gt;
          &lt;extension name="basecommerce" /&gt;
          &lt;extension name="payment" /&gt;
          &lt;extension name="promotions" /&gt;
          &lt;extension name="voucher" /&gt;
          &lt;extension name="customerreview" /&gt;
          &lt;extension name="ticketsystem" /&gt;
          &lt;extension name="solrfacetsearch" /&gt;
          &lt;extension name="solrfacetsearchhmc" /&gt;
          &lt;extension name="wishlist" /&gt;
          &lt;extension name="commercefacades" /&gt;
  
          &lt;!-- ext-data --&gt;
          &lt;extension name="commercesearchsampledata" /&gt;
          &lt;extension name="mediaconversion" /&gt;
  
          &lt;!-- ext-content --&gt;
          &lt;extension name="productcockpit" /&gt;
          &lt;extension name="cms2" /&gt;
          &lt;extension name="cms2lib" /&gt;
          &lt;extension name="cmscockpit" /&gt;
          &lt;extension name="mobileoptionals" /&gt;
          &lt;extension name="mobileservices" /&gt;
          &lt;extension name="cscockpit" /&gt;
          &lt;extension name="instore" /&gt;
  
          &lt;!-- ext-addon --&gt;
          &lt;extension name="addonsupport" /&gt;
  
          &lt;!-- ext-accelerator --&gt;
          &lt;extension name="acceleratorservices" /&gt;
          &lt;extension name="acceleratorfacades" /&gt;
          &lt;extension name="acceleratorcms" /&gt;
          &lt;extension name="acceleratorstorefrontcommons" /&gt;
  
  
  
         &lt;!-- Solr server extension --&gt;
        &lt;extension name="solrserver"/&gt;
  
         &lt;!--  Lucene-search extension for backoffice --&gt;
         &lt;extension name="lucenesearch"/&gt;
  
         &lt;extension name='warehousingbackoffice' /&gt;
  
  
  
         &lt;extension name='paymentgatewaymockaddon' /&gt;
  
         &lt;!-- Adding extensions for backoffice --&gt;
         &lt;!--  add them at the end of every backoffice extension --&gt;
         &lt;extension name="platformbackoffice"/&gt;
         &lt;extension name="mediaconversionbackoffice"/&gt;
  
         &lt;!-- unbxd integration --&gt;
         &lt;extension name="unbxd"/&gt;
  
      &lt;/extensions&gt;
  &lt;/hybrisconfig&gt;
  </code></pre>
  
  <p>Is there anyway I can resolve this issue ?</p>