Followers

Tuesday, March 18, 2014

Updating OOB toolkit with FEP5 to FP8/FEP7
------------------------------------------------------------

  1. Apply FixPack 8

  • Installation Manager > Update
  • Select WC Developer.
  • Follow instructions

  1. Apply FEP7

  • Update RAD test server to 7.0.0.31 and developer to 7.5.5.5 iFix1 ( select IBM Software Delivery Platform , DO NOT select update all and do update). This will ask to update installation mgr to 1.7.2 also.
  • Installation Manager> Update  ( not Install as new)
  • Select WC Developer.
  • Follow Instructions



Solr Issues:
After installing FEP7 on an FEP5 toolkit that has Aurora store, you won’t see departments when to take aurora site.
You will get " The store has encountered a problem processing the last request. Try again later. If the problem persists, contact your site administrator."
This means Solr is not indexed properly.


Solution:

            Stop server and run setupSearchIndex.

         (Build search index for the new languages:  )   
Stop server.
DELETE folder -  C:\WCDE_ENT70\search\solr\home\MC_10001

cd C:\WCDE_ENT70\components\foundation\subcomponents\search\bin>
>setupSearchIndex.bat -masterCatalogId 10001
( warnings are ok .. Make sure wc-search.xml is generated in C:\WCDE_ENT70\workspace\WC\xml\config\com.ibm.commerce.catalog-ext and Search\xml\config\com.ibm.commerce.catalog-ext)

Start server
>di-preprocess.bat C:\WCDE_ENT70\search\pre-processConfig\MC_10001\DB2 -onelevel true

>di-buildindex.bat -masterCatalogId 10001
   
Issues:
1) ADATTR issue while running  di-preprocess.bat

The value of a host variable is too large for its corresponding use.  Host variable=2. ERRORCODE=-4461, SQLSTATE=42815

Solution:
Edit C:\WCDE_ENT70\search\pre-processConfig\MC_10001\DB2\wc-dataimport-preprocess-attribute.xml

<_config:table definition="CREATE TABLE TI_ADATTR_0_#lang_tag# (CATENTRY_ID BIGINT NOT NULL, ATTRIBUTES VARCHAR(16000), PRIMARY KEY (CATENTRY_ID))" name="TI_ADATTR_0_#lang_tag#"/>

Change to

<_config:table definition="CREATE TABLE TI_ADATTR_0_#lang_tag# (CATENTRY_ID BIGINT NOT NULL, ATTRIBUTES CLOB, PRIMARY KEY (CATENTRY_ID))" name="TI_ADATTR_0_#lang_tag#"/>


And restart server , run di-preprocess.bat C:\WCDE_ENT70\search\pre-processConfig\MC_10001\DB2 -onelevel true   
                
2)If getting error in buildindex:
FINER: ENTRY _INFO_DI_BUILDINDEX_EXIT_FAILURE_UNRECOVERABLE_ERROR [Ljava.lang.Object;@5b825b82
Mar 18, 2014 11:34:36 AM com.ibm.commerce.foundation.dataimport.util.DataImportHelper getLocalizedMessage
FINER: RETURN Data import process was unsuccessful. An unrecoverable error has occurred.
Mar 18, 2014 11:34:36 AM com.ibm.commerce.foundation.dataimport.util.DataImportHelper printException
INFO: Data import process was unsuccessful. An unrecoverable error has occurred.
Throwable occurred: org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Server at http://localhost:80/solr returned non ok status:500, message:Internal Server Error
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:372)


Solution:
Add port 80 to C:\WCDE_ENT70\workspace\WC\xml\config\com.ibm.commerce.catalog-ext\wc-search.xml
 <_config:common-http URL="http://localhost/solr"

Change to
 <_config:common-http URL="http://localhost:80/solr"

And run preprocess and buildindex again.


3) CommonsHttpSolrServer  solr issue:
[3/18/14 14:21:58:554 EDT] 00000035 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[/Aurora/Widgets/Search/Search.jsp]: com.ibm.ws.jsp.JspCoreException: JSPG0049E: /Aurora/Widgets/Search/Search.jsp failed to compile :

JSPG0225E: An error occurred at line: 20 in the statically included file: /Aurora/Widgets/Search/JSTLEnvironmentSetupExtForSearch.jspf
JSPG0093E: Generated servlet error from file: /Aurora/Widgets/Search/Search.jsp

C:\WCDE_E~1\wasprofile\temp\localhost\server1\WC\Stores.war\Aurora\Widgets\Search\_Search.java : 12 : Only a type can be imported. org.apache.solr.client.solrj.impl.CommonsHttpSolrServer resolves to a package

JSPG0225E: An error occurred at line: 39 in the statically included file: /Aurora/Widgets/Search/JSTLEnvironmentSetupExtForSearch.jspf
JSPG0093E: Generated servlet error from file: /Aurora/Widgets/Search/Search.jsp

C:\WCDE_E~1\wasprofile\temp\localhost\server1\WC\Stores.war\Aurora\Widgets\Search\_Search.java : 249 : CommonsHttpSolrServer cannot be resolved to a type

JSPG0225E: An error occurred at line: 40 in the statically included file: /Aurora/Widgets/Search/JSTLEnvironmentSetupExtForSearch.jspf
JSPG0093E: Generated servlet error from file: /Aurora/Widgets/Search/Search.jsp

C:\WCDE_E~1\wasprofile\temp\localhost\server1\WC\Stores.war\Aurora\Widgets\Search\_Search.java : 250 : CommonsHttpSolrServer cannot be resolved to a type



Solution:


Update your storefront JSP files:
  1. Open the following file:
    For the Aurora starter store:
  1. Find the following snippet:
    <%@ page import="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer" %>
  2. Replace it with the following snippet:
    <%@ page import="org.apache.solr.client.solrj.impl.HttpSolrServer" %>
  3. Find the following snippet:
    if(solrServer instanceof CommonsHttpSolrServer ){
                serverURL = ((CommonsHttpSolrServer )solrServer).getBaseURL();
  4. Replace it with the following snippet:
    if(solrServer instanceof HttpSolrServer){
                serverURL = ((HttpSolrServer)solrServer).getBaseURL();
  5. Save your changes and close the file.