title: no bean named > 'mystoreBrandCategoryCodeValueProvider' available (hybris)
body: <blockquote>
    <p>Caused by: java.util.concurrent.ExecutionException:
    de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerRuntimeException:
    de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException:
    Failed to index item with PK 8796431187969: No bean named
    'mystoreBrandCategoryCodeValueProvider' available
            at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_171]
            at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_171]
            at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.runWorkers(DefaultIndexerStrategy.java:141)
    ~[solrfacetsearchserver.jar:?]</p>
  </blockquote>
  
  <p>I get this error when i try to go to localhost for mystore.</p>
  
  <p>My steps:</p>
  
  <ul>
  <li>i created b2b from b2c as described on helphybris</li>
  <li>it is working well because i can visit powertools website</li>
  <li>I copied all impexes from powertools to mystore  which is under <code>mystoreinitialdata/import</code></li>
  <li>then i went to <code>backoffice/wcms</code> and saw my store as url</li>
  <li>and also i could see my catalogs on <code>catalogs</code> tab; product, catalog and classification. Just like powertools.</li>
  </ul>
  
  <p>What i want is, with powertools impexes copied to mystore, i want to see powertools items under mystore.</p>
  
  <p>But it gives error which i posted in the beginning.</p>
  
  <p>I only copied impexes. </p>
  
  <p>For example</p>
  
  <pre><code>mystore/solr.impex
  </code></pre>
  
  <p>has </p>
  
  <pre><code>;$solrIndexedType; color         ;string;;;Refine;Alpha; 4000;true;;mystoreVariantCategoryCodeValueProvider;categoryFacetDisplayNameProvider;defaultTopValuesProvider
  </code></pre>
  
  <p>which i copied from powertools. But powertools has</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans.xsd
             http://www.springframework.org/schema/context
             http://www.springframework.org/schema/context/spring-context.xsd"&gt;
  
      &lt;context:annotation-config/&gt; 
  
      &lt;alias alias="b2bAcceleratorCoreSystemSetup" name="powertoolsStoreSystemSetup" /&gt;
      &lt;bean id="powertoolsStoreSystemSetup" class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup" parent="abstractCoreSystemSetup"&gt;
          &lt;property name="powertoolsCoreDataImportService" ref="powertoolsCoreDataImportService"/&gt;
          &lt;property name="powertoolsSampleDataImportService" ref="powertoolsSampleDataImportService"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
          parent="sampleDataImportService"&gt;
      &lt;/bean&gt;
      &lt;bean id="powertoolsCoreDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsCoreDataImportService"
            parent="coreDataImportService"&gt;
      &lt;/bean&gt;
  
      &lt;!-- Solr field value providers TEMPORARY FOR NOW SO DO NOT NEED TO DEPEND ON yb2bacceleratorcore --&gt;
  
          &lt;bean id="powertoolsCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider"&gt;
          &lt;property name="categorySource" ref="powertoolsCategorySource"/&gt;
      &lt;/bean&gt;
      &lt;bean id="powertoolsBrandCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider"&gt;
          &lt;property name="categorySource" ref="powertoolsBrandCategorySource"/&gt;
      &lt;/bean&gt;
      &lt;bean id="powertoolsVariantCategoryCodeValueProvider" parent="abstractCategoryCodeValueProvider"&gt;
          &lt;property name="categorySource" ref="powertoolsVariantCategorySource"/&gt;
      &lt;/bean&gt;
  
  
      &lt;bean id="powertoolsCategoryNameValueProvider" parent="abstractCategoryNameValueProvider"&gt;
          &lt;property name="categorySource" ref="powertoolsCategorySource"/&gt;
      &lt;/bean&gt;
  
      &lt;bean id="powertoolsBrandCategoryNameValueProvider" parent="abstractCategoryNameValueProvider"&gt;
          &lt;property name="categorySource" ref="powertoolsBrandCategorySource"/&gt;
      &lt;/bean&gt;
  
          &lt;bean id="powertoolsCategorySource" parent="variantCategorySource"&gt;
          &lt;property name="rootCategory" value="1"/&gt; &lt;!-- '1' is the root icecat category --&gt;
      &lt;/bean&gt;
      &lt;bean id="powertoolsVariantCategorySource" parent="variantCategorySource"/&gt;
  
      &lt;bean id="powertoolsBrandCategorySource" parent="defaultCategorySource"&gt;
          &lt;property name="rootCategory" value="brands"/&gt; &lt;!-- 'brands' is the root of the brands hierarchy --&gt;
      &lt;/bean&gt;
  
      &lt;!-- Solr field value providers TEMPORARY FOR NOW SO DO NOT NEED TO DEPEND ON yb2bacceleratorcore --&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>this in <code>powertoolsspring-xml</code></p>
  
  <p>there is no folder as mystorestore because the directory is powertoolsstore in</p>
  
  <pre><code>&lt;bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
          parent="sampleDataImportService"&gt;
  </code></pre>
  
  <p>and for </p>
  
  <pre><code> class="de.hybris.platform.powertoolsstore.setup.PowertoolsStoreSystemSetup" 
  </code></pre>
  
  <p>mystore only has </p>
  
  <p>mystore/initialdata/setup/InitialDataSystemSetup.java</p>
  
  <p>and for</p>
  
  <pre><code>    &lt;bean id="powertoolsSampleDataImportService" class="de.hybris.platform.powertoolsstore.services.dataimport.impl.PowertoolsSampleDataImportService" 
      parent="sampleDataImportService"&gt;
  </code></pre>
  
  <p>mystore doesnot havea services.</p>
  
  <p>What should i do? I want to see localhost with items. so i thought best way is to copy from powertools?</p>