Monday, March 2, 2015

Missing wc-search.xml file when running setupSearchIndex.sh


The error:

An error occurred while exporting file xml/config/com.ibm.commerce.catalog-ext/wc-search.xml from EAR. The exception error was Java returned: 105.

You may miss the wc-search.xml file in certain location:

./AppServer/v70/profiles/ecom/installedApps/cellapp01/WC_instance.ear/xml/config/com.ibm.commerce.catalog-ext/wc-search.xml
./AppServer/v70/profiles/ecom/installedApps/cellapp01/WC_instance.ear/xml/config/com.ibm.commerce.catalog-fep/wc-search.xml

./CommerceServer70/components/foundation/subcomponents/search/search.ear/xml/config/com.ibm.commerce.catalog/wc-search.xml

./CommerceServer70/components/foundation/wc.ear/xml/config/com.ibm.commerce.catalog-fep/wc-search.xml

./CommerceServer70/wc.ear/xml/config/com.ibm.commerce.catalog-ext/wc-search.xml

Detailed log:


Feb 27, 2015 6:43:11 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: ENTRY INFO_TASK_WC_SEARCH_XML_CONFIG_IMPORT_START [Ljava.lang.String;@70f370f3Feb 27, 2015 6:43:11 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: RETURN Started importing the updated wc-search.xml to EAR. It will take a few minutes.Feb 27, 2015 6:43:11 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteINFO: Started importing the updated wc-search.xml to EAR. It will take a few minutes.Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: ENTRY INFO_TASK_WC_SEARCH_XML_CONFIG_IMPORT_END [Ljava.lang.String;@52e652e6Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: RETURN Finished importing the updated wc-search.xml to EAR.Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteINFO: Finished importing the updated wc-search.xml to EAR.Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: delete template fileFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile(File, File)FINER: ENTRY /usr/IBM/WebSphere/AppServer/v70/profiles/ecom/properties/soap.client.props.bak /usr/IBM/WebSphere/AppServer/v70/profiles/ecom/properties/soap.client.propsFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName(File)FINER: ENTRY /usr/IBM/WebSphere/AppServer/v70/profiles/ecom/properties/soap.client.props.bakFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName(File)FINER: RETURN bakFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile(File, File)FINER: RETURNFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: profileName: costco_solrFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: searchWASApplicationName: Search_costcocostcoFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: wasAdminUser: Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: sourceSearchSearchXML: xml/config/com.ibm.commerce.catalog-ext/wc-search.xmlFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINE: tempSearchSearchXML: /usr/IBM/WebSphere/CommerceServer70/instances/costco/temp/indexsetup/Search/wc-search.xmlFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile(File, File)FINER: ENTRY /usr/IBM/WebSphere/AppServer/v70/profiles/costco_solr/properties/soap.client.props /usr/IBM/WebSphere/AppServer/v70/profiles/costco_solr/properties/soap.client.props.bakFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName(File)FINER: ENTRY /usr/IBM/WebSphere/AppServer/v70/profiles/costco_solr/properties/soap.client.propsFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName(File)FINER: RETURN opsFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile(File, File)FINER: RETURNFeb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: ENTRY INFO_TASK_WC_SEARCH_XML_CONFIG_EXPORT_START [Ljava.lang.String;@62b562b5Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: RETURN Started exporting the wc-search.xml from EAR. It will take a few minutes.Feb 27, 2015 6:45:29 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteINFO: Started exporting the wc-search.xml from EAR. It will take a few minutes.Feb 27, 2015 6:45:40 PM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrResetWCSearchXMLTask performExecuteFINER: RETURNFeb 27, 2015 6:45:40 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: ENTRY _ERR_EAR_FILE_EXPORT_FAILED [Ljava.lang.Object;@5bc25bc2Feb 27, 2015 6:45:40 PM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessageFINER: RETURN An error occurred while exporting file xml/config/com.ibm.commerce.catalog-ext/wc-search.xml from EAR. The exception error was Java returned: 105.Feb 27, 2015 6:45:40 PM com.ibm.commerce.search.indexsetup.execution.job.SearchIndexSetupGenericJob runTaskFINER: RETURN


Similar errors:

Error 1, importing error:

An error occurred while importing file xml/config/com.ibm.commerce.catalog-fep/wc-search.xml to EAR. The exception error was Java™ returned: 105

According to the following link, the Search server has to be started:

http://www-01.ibm.com/support/docview.wss?uid=swg21668739

"The Search server must be started when issuing command setupSearchIndex, because after Feature Pack 7 has been applied, the wc-search.xml is exported from the Commerce Server and imported into the Search (Solr) server. If a federated node, then the Deployment Manager will need to be started."
Error 2, exporting error:
An error occurred while attempting to run task. The exception error was: An error occurred while exporting file xml/config/com.ibm.commerce.catalog-fep/wc-search.xml from EAR. The exception error was Java™ returned: 105.
"- On Linux /AIX/Solaris - Ensure the user that is running setupSearchIndex.sh is a non-root user and has write permissions on the directory <WC_InstallDir>\instances\...\temp\indexsetup\"
"- On Windows - Ensure you are logged on with a user ID that is a member of the Windows Administration group"
The log file shows:
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: profileName: WCProfile_solr
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: searchWASApplicationName: Search_WCProfile
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: wasAdminUser:
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: temp source search search xml: xml/config/com.ibm.commerce.catalog/wc-search.xml
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: temp search search xml: /opt/IBM/WebSphere/CommerceServer70/instances/WCProfile/temp/indexsetup/Search/wc-search.xml
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINE: temp ext search search xml path: /opt/IBM/WebSphere/CommerceServer70/instances/WCProfile/temp/indexsetup/Search/wc-search-ext.xml
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile
FINER: ENTRY
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName
FINER: ENTRY
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper getFileExtensionName
FINER: RETURN
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupFileHelper copyFile
FINER: RETURN
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessage
FINER: ENTRY INFO_TASK_WC_SEARCH_XML_CONFIG_EXPORT_START [Ljava.lang.String;@4ba64ba6
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessage
FINER: RETURN Started exporting the wc-search.xml from EAR. It will take a few minutes.
Nov 10, 2014 10:22:44 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
INFO: Started exporting the wc-search.xml from EAR. It will take a few minutes.
Nov 10, 2014 10:28:19 AM com.ibm.commerce.search.indexsetup.execution.task.ConfigWCforSolrCatalogEntryWCSearchXMLSetupTask performExecute
FINER: RETURN
Nov 10, 2014 10:28:19 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessage
FINER: ENTRY _ERR_EAR_FILE_EXPORT_FAILED [Ljava.lang.Object;@2f012f01
Nov 10, 2014 10:28:19 AM com.ibm.commerce.search.indexsetup.utils.SearchIndexSetupStringHelper getLocalizedMessage
FINER: RETURN An error occurred while exporting file xml/config/com.ibm.commerce.catalog-fep/wc-search.xml from EAR. The exception error was Java returned: 105.

Database JNDI Configuration Isuuse with Cloudscape DataSource demo


If you have database configuration problem when the WebSphere Commerce Search server is starting, you may see the following error message:

Failed to retrieve datasource for search server with JNDI name: jdbc/WebSphere Commerce Cloudscape DataSource demo.

One reason we saw this message was that the classpath missed the jdbc libraries. The Search server decide to switch to the default data source that is the demo one.


[10/9/14 11:05:32:513 PDT] 00000012 SolrRESTSearc W com.ibm.commerce.foundation.server.services.rest.search.config.solr.SolrRESTSearchDatabaseConfiguration parseElement(Element) WAS configurable namespace binding for Search datasource is not defined. Defaulting to Cloudscape for use with Toolkit.
[10/9/14 11:05:33:069 PDT] 00000012 SolrRESTSearc W com.ibm.commerce.foundation.server.services.rest.search.config.solr.SolrRESTSearchDatabaseConfiguration parseElement(Element) WAS configurable namespace binding for Search datasource is not defined. Defaulting to Cloudscape for use with Toolkit.

com.ibm.commerce.foundation.server.services.dataaccess.exception.ConfigurationException: CWXFS0020E: Failed to retrieve datasource for search server with JNDI name: jdbc/WebSphere Commerce Cloudscape DataSource demo.
at com.ibm.commerce.foundation.server.services.rest.search.config.solr.SolrRESTSearchDataSourceConfigurationFactory.getDefaultDataSource(SolrRESTSearchDataSourceConfigurationFactory.java:155)
at com.ibm.commerce.foundation.internal.common.config.ConfigurationFactory.getDefaultDataSource(ConfigurationFactory.java:203)
at com.ibm.commerce.foundation.internal.server.databaseconnection.J2EEDatabaseConnectionManager.initDataSource(J2EEDatabaseConnectionManager.java:93)
at com.ibm.commerce.foundation.internal.server.databaseconnection.J2EEDatabaseConnectionManager.getConnection(J2EEDatabaseConnectionManager.java:228)
at com.ibm.commerce.foundation.server.services.dataaccess.JDBCQueryService.getConnection(JDBCQueryService.java:1565)