Thursday, April 17, 2014

Enabling Store Enhancement feature for WCS v7

Enabling Store Enhancement feature for WCS v7

Table of Contents

Note: This document only summarizes the steps of configuration for more details do select the selected URL with CTRL+Click from keyboard.

After you install the feature pack, you must enable the starter store enhancements feature to take advantage of the store features.
After you enable the starter store enhancements feature, the following store archive (.sar) files are available for publishing:
  • MayUJoy starter store (MayUJoy.sar)
Provides all the pages and features necessary for a functioning consumer direct online store for the Chinese market.
  • Brazil starter store (Brazil.sar)
Provides all the pages and features necessary for a functioning consumer direct online store for the Brazilian market.
  • Madisons starter store enhancements (MadisonsEnhancements.sar):
    • Description: Introduced in Feature Pack 1Remote widgets store enhancements
    • Description: Introduced in Feature Pack 1Digital wallet functionality
    • Description: Introduced in Feature Pack 2Coshopping functionality
    • Description: Introduced in Feature Pack 2Search integration
    • Description: Introduced in Feature Pack 2Subscriptions and recurring orders
    • Description: Introduced in Feature Pack 2Support for Management Center price lists and price rules
    • Description: Introduced in Feature Pack 3Store pages that are tagged with the latest set of WebSphere Commerce analytics tags for IBM Digital Analytics, formerly known as Coremetrics Analytics
    • Description: Introduced in Feature Pack 3e-Marketing Spots that support dynamic recommendations from IBM Product Recommendations, formerly known as Coremetrics Intelligent Offer
    • Description: Introduced in Feature Pack 3Dynamic kit integration with Sterling Configurator
    • Description: Feature Pack 4 or laterFacebook integration
  • Elite starter store enhancements (EliteEnhancements.sar and EliteStorefrontAssetStore-FEP.sar):
    • Description: Introduced in Feature Pack 2Search integration
    • Description: Introduced in Feature Pack 3Store pages that are tagged with the latest set of WebSphere Commerce analytics tags for IBM Digital Analytics, formerly known as Coremetrics Analytics
    • Description: Introduced in Feature Pack 3e-Marketing Spots that support dynamic recommendations from IBM Product Recommendations, formerly known as Coremetrics Intelligent Offer
    • Description: Introduced in Feature Pack 3Dynamic kit integration with Sterling Configurator
  • Description: Feature Pack 4 or laterMadisons mobile enhancements (MadisonsMobileEnhancements.sar):
    • Mobile starter stores for smartphone and tablet devices:
      • Mobile web starter stores
      • Mobile applications for Android and iOS
  • Description: Feature Pack 5 or laterAurora starter store (Aurora.sar):
    • Description: Feature Pack 6 or laterIBM Tealeaf Customer Experience integration
    • Description: Feature Pack 6 or latere-Marketing Spot and wish list feeds
    • Description: Feature Pack 6 or laterClick-to-edit function
    • Description: Feature Pack 6 or laterAdvanced Search page
    • Description: Feature Pack 6 or laterSupport for Dojo 1.8
    • Description: Feature Pack 6 or laterHebrew language translation
    • Description: Feature Pack 6 or laterTolerance for tablet devices
    • Description: Feature Pack 6 or laterProduct-specific swatch images
Note: There are no enhancement store archive (.sar) files for the Aurora starter store. To obtain the latest Aurora store features for a specific feature pack, republish the Aurora.sar file after you install the feature pack and enable starter store enhancements.Description: End of change[VT1] 
Description: End of change
  • Description: Feature Pack 6 or laterAurora mobile enhancements (AuroraMobile.sar):
    • Mobile starter stores for smartphone and tablet devices:
      • Mobile web starter stores
      • Mobile applications that use IBM Worklight

2.0     Before you begin

1)    Ensure that you are logged on as the WebSphere Commerce non-root user.
2)    Ensure that you are logged on as a user that has *SECOFR authority.
3)    Review the prerequisite steps in Enabling features.
2.1  Enabling features
After you install a WebSphere Commerce feature pack, you can enable any of the included features to enhance your WebSphere Commerce instance.
Before you begin
  • Each WebSphere Commerce feature pack contains features that you can enable.
  • In the runtime environment, to enable the features included in the WebSphere Commerce feature pack, you must have a WebSphere Commerce instance created.
  • In a staging environment, ensure that you run the stagingprop utility before you enable features.
  • In a staging environment, both the staging and production servers must satisfy the following condition:
    • The WebSphere Commerce application and the WebSphere Commerce database are at the same feature pack level.
  • Back up your database. Refer to your database user manual for information on backup and restore procedures.
  • Description: DB2 It is recommended that you use the latest DB2 fix pack available for your DB2 version.
Description: WebSphere Commerce Version 7.0.0.2 or later There are issues that are related to database schema creation when you use DB2 V9.7 Fix Pack 5 or later. See: Database schema creation might fail on DB2 V9.7 Fix Pack 5 (or later) when you install or upgrade from a WebSphere Commerce version older than V7.0.0.6
Description: WebSphere Commerce Developer Description: Introduced in Feature Pack 2 Important: If you plan to use DB2 Version 9.7 database, you must change the development database type before you enable features.
  • Description: DB2 If you have custom table spaces, you must ensure that the SQL files that rely on the table spaces are modified to reference the names of your custom table spaces.
Depending on the feature pack level you have installed, modify one or more of the following files:
    • Description: Introduced in Feature Pack 1 WC_installdir/components/foundation/schema/fep1/db2/wcs.schema.foundation.sql
    • Description: Introduced in Feature Pack 2 WC_installdir/components/foundation/schema/fep2/db2/wcs.schema.foundation.sql
    • Description: Introduced in Feature Pack 3 WC_installdir/components/foundation/schema/fep3/db2/wcs.schema.foundation.sql
    • Description: Feature Pack 4 or later WC_installdir/components/foundation/schema/fep4/db2/wcs.schema.foundation.sql
    • Description: Feature Pack 4 or later WC_installdir/components/location-services/schema/fep4/db2/wcs.schema.location-services.sql
    • Description: Feature Pack 5 or later WC_installdir/components/foundation/schema/fep5/db2/wcs.schema.foundation.sql
    • Description: Feature Pack 6 or later WC_installdir/components/foundation/schema/fep6/db2/wcs.schema.foundation.sql
In each applicable SQL file, you must change any table space references so that they point to your custom table spaces. Feature packs are cumulative, so if you are on a later feature pack, files for lower-level feature packs will already be present on your system and will need to be modified.
  • Description: WebSphere Commerce Developer Ensure that you have all of your changes checked into software configuration management (SCM).
  • Description: WebSphere Commerce Developer Disconnect SVN before feature enablement. It can be re-enabled after feature enablement is complete.
  • Description: Windows Description: WebSphere Commerce Developer Ensure that Windows Indexing and Windows Search services are disabled. If these services are enabled they can prevent the clean-up of working directories, which can cause feature disablement to fail
About this task
If you enable a high-level feature, lower-level features are enabled automatically. The following table shows the dependencies between the features.
Functional area
When you enable this feature...
These dependent features are automatically enabled
Description: Feature Pack 4 or later Location-based services
Description: Feature Pack 4 or later location-services
Description: Feature Pack 4 or later
·         management-center
·         foundation
Store enhancements
Includes:
·         Description: Introduced in Feature Pack 1 Remote widgets
·         Description: Introduced in Feature Pack 2 Coshopping functionality
·         Description: Introduced in Feature Pack 2 Search integration
·         Description: Introduced in Feature Pack 2 Subscriptions and recurring orders
·         Description: Introduced in Feature Pack 2 Price rules and price lists
·         Description: Introduced in Feature Pack 2 IBM Product Recommendations, formerly known as Coremetrics Intelligent Offer
·         Description: Introduced in Feature Pack 3 Dynamic kit integration with Sterling Configurator
·         Description: Feature Pack 5 or later Search engine optimization (SEO)
store-enhancements
·         management-center
·         foundation
Description: Introduced in Feature Pack 2 Content versioning
Description: Introduced in Feature Pack 2 content-version
Description: Introduced in Feature Pack 2
·         management-center
·         foundation
Management Center
management-center
·         foundation
WebSphere Commerce foundation
foundation

Procedure
Enable one or more features (FP 4 onwards):
NOTE: For more details follow the Hyperlink by CTRL+Click on eeach link above
 Note: Any features that are enabled before you run the setdbtype command must be re-enabled.

4)    Ensure that the test server is stopped and that Rational Application Developer is not running.
5)    Ensure that your administrative server is started. For example:
o    If WebSphere Commerce is managed by WebSphere Application Server Deployment Manager (dmgr), start the deployment manager and all node agents. Your cluster can also be started.
o    If WebSphere Commerce is not managed by dmgr, start the WebSphere Application Server server1.
6)    Determine how you are going to deploy the WebSphere Commerce search server:
Deploys the search server locally on a separate application server profile. This method enables the WebSphere Commerce server to statically bind to the local dedicated search server and avoid outgoing network communications to a remote machine.
Deploys the search server remotely, depending on your environment. It prepares the deployment package to copy and run the deployment scripts on a remote search machine, where a search profile and web module is deployed.
Note:
To support personalization in remote widgets and feeds, persistent sessions and personalization ID must be enabled. When you run the enablement script, the script checks the WebSphere Commerce configuration file for the current settings:

Enabled
Disabled
Persistent sessions
The script does not change the setting.
The script enables persistent sessions.
The script sets the Cookie expiry (days) value to -1. As a result, sessions do not persist because the number of days is a negative number.
To persist sessions, change the Cookie expiry (days) value to a positive number of days.
Personalization ID
The script does not change the setting.
The script enables personalization ID.

  1. Complete one of the following tasks:
    • Description: AIXDescription: LinuxDescription: SolarisLog on as a WebSphere Commerce non-root user.
    • Description: WindowsLog on with a user ID that is a member of the Windows Administration group.
    • Description: For IBM i OS operating systemLog on with a user profile that has *SECOFR authority.
  2. Go to the following directory:
  3. As the WebSphere Commerce non-root user, increase the file handle limit.
    • Description: AIXDescription: SolarisIncrease the file handle limit with the command: ulimit -n 8192
    • Description: LinuxAs the root user grant USE authority to the non-root user. Switch to the non-root user and issue the command: ulimit -n 8192. You can also issue the command as the root user, then switch to the non-root user.
  4. Run the enablement script. Running the starter store enhancements enablement script also enables the Management Center feature. That is, if the Management Center feature is disabled, it is enabled after you run the starter store enhancements enablement script.
    • Description: Windowsconfig_ant.bat -buildfile WC_installdir/components/common/xml/enableFeature.xml -DinstanceName=instance_name -DfeatureName=store-enhancements -DdbUserPassword=db_password [-DdbaPassword=dba_password] [-DSolrWASAdminUser = solr_wasadminuser] [-DSolrWASAdminPassword =solr_wasadminpassword] Description: Feature Pack 5[-Dscchost=HostForScheduledJobs] Description: Feature Pack 5[search_server_config] Description: Feature Pack 6 or later[-DsearchPort=searchPort]
    • Description: AIXDescription: LinuxDescription: Solaris./config_ant.sh -buildfile WC_installdir/components/common/xml/enableFeature.xml -DinstanceName=instance_name -DfeatureName=store-enhancements -DdbUserPassword=db_password [-DSolrWASAdminUser = solr_wasadminuser] [-DSolrWASAdminPassword = solr_wasadminpassword] Description: Feature Pack 5[-Dscchost=HostForScheduledJobs] Description: Feature Pack 5[search_server_config] Description: Feature Pack 6 or later[-DsearchPort=searchPort]
    • Description: For IBM i OS operating system./config_ant.sh -buildfile WC_installdir/components/common/xml/enableFeature.xml -DinstanceName=instance_name -DfeatureName=store-enhancements -DdbUserPassword=db_password [-DdbaPassword=dba_password] [-DSolrWASAdminUser = solr_wasadminuser] [-DSolrWASAdminPassword =solr_wasadminpassword] Description: Feature Pack 5[-Dscchost=HostForScheduledJobs] Description: Feature Pack 5[search_server_config] Description: Feature Pack 6 or later[-DsearchPort=searchPort]
    • Description: WebSphere Commerce DeveloperenableFeature.bat -DfeatureName=store-enhancements
Where:
instanceName
The name of the WebSphere Commerce instance with which you are working (for example, demo).
featureName
The name of the WebSphere Commerce feature to enable (for example, store-enhancements).
dbUserPassword
The password for the user who is connecting to the database.
dbaPassword
The dbaPassword is required when you are enabling the feature on an Authoring server.
SolrWASAdminUser
The WebSphere Application Server administrator user ID for the Solr cell. This parameter is required only if all three of the following conditions are met:
    • You enabled a previous version of Search from an earlier WebSphere Commerce feature pack
    • You enabled WebSphere Administration Server administrative security on the Search server
    • You are not specifying remoteSearchEngine=true
SolrWASAdminPassword
The WebSphere Application Server administrator password for the Solr cell. This parameter is required only if all three of the following conditions are met:
    • You enabled a previous version of Search from an earlier WebSphere Commerce feature pack
    • You enabled WebSphere Administration Server administrative security on the Search server
    • You are not specifying remoteSearchEngine=true
Description: Feature Pack 5 or laterscchost
Description: Feature Pack 5 or laterThe name of the host (server) on which the scheduled job runs. Use this parameter if your organization chooses to schedule jobs to run only on a specific host.
The WebSphere Commerce scheduler runs the RefreshRegistry command to ensure that the latest data from the CMDREGtable is used by the WebSphere Commerce CommandRegistry. The job runs only if the CMDREG table was modified. It runs only once, shortly after enablement is completed. By default, this scheduled job run is set to run on any host. If you want to run on a specific host, use this parameter to define the specific host.
Description: Introduced in Feature Pack 2Note: The search server is deployed when the foundation feature is enabled.
Description: Feature Pack 2Description: Feature Pack 3Description: Feature Pack 4Description: Feature Pack 5Description: Feature Pack 6remoteSearchEngine
Description: Feature Pack 2Description: Feature Pack 3Description: Feature Pack 4Description: Feature Pack 5Description: Feature Pack 6Use this parameter with a value of true when you are deploying Solr search server on a remote machine.
Description: Feature Pack 5 or laterThe search_server_config options help automate updating the web server configuration for IBM HTTP Server. If you do not use this option, you must manually configure your web server after you run the enablement script, as described in the next step. When thesearch_server_config options are used, WebSphere Commerce search helps automate creating the web server configuration. This automation is achieved by passing in more configuration parameters when you run the enablement scripts.
Important: The automated web server configuration supports IBM HTTP Server (IHS) only. That is, it does not support or include steps for configuring non-IHS web servers such as IIS and SunOne. For other types of web servers, consult the documentation that is provided by the web server vendor to update the configuration.
This approach includes the following considerations:
    • The WebSphere Commerce search web server's httpd.conf file is automatically created.
    • You can set up a valid configuration where the WebSphere Commerce search and WebSphere Commerce web servers have separate configuration files. That is, you do not need to manually update the plugin-cfg.xml files.
    • If preferred, you do not need to install another copy of IBM HTTP Server. The same installation can be shared with the WebSphere Commerce web server.
A second IHS process is launched to handle search HTTP requests that use the same IHS installation. A second process ensures that the configurations do not collide, while easing configuration and maintenance.
Important: You can skip updating the web server configuration if you previously enabled the feature foundation and passed in thesearch_server_config parameters during the enablement. you can also skip the update if your Solr web server is already configured.
The following list shows the available parameters with brief explanations of each. Examples can be seen in the following task, along with more-detailed descriptions of each parameter and when it is needed and not needed:
The scripts validate the values that are provided for any required parameters. If values for required parameters are blank, the scripts do not proceed. The error message indicates which values must be specified. An example of such an error can be viewed in the following troubleshooting reference:
Where search_server_config includes the following parameters that help automate updating the web server configuration for IBM HTTP Server:
autoConfigSearchWebserver
The flag that turns on or off the automation. It indicates whether to automatically configure the IHS web server. The default value is false.
If set to false, or if not specified in the script, you must manually configure your search web server.
isShareWCWebserverProduct
Indicates whether the IHS server is shared with WebSphere Commerce. The default value is false.
If set to true, the parameter values listed below are automatically retrieved. However, you must specify the FTP password, as it is not typically stored on disk for security purposes.
searchWebserverHostname
The fully qualified host name for the WebSphere Commerce Search web server.
searchWebserverOS
Indicates which operating system is used on the search web server host.
searchWebserverInstallLocation
The WebSphere Commerce search installation location.
searchPluginInstallLocation
The WebSphere Commerce search plug-in installation location. This parameter is required when you use a separate IHS installation.
searchRemoteConfigPath
The path on the remote IHS machine where the WebSphere Commerce Search web server's file is stored.
searchIsConfigViaFTP
Indicates whether to transfer the configuration files using FTP.
The FTP parameters include:
searchFtpServerPort
The WebSphere Commerce search FTP server port.
searchFtpUserId
The WebSphere Commerce search FTP user ID.
searchFtpUserPwd
The WebSphere Commerce search FTP user password.
searchIsConfigViaNFS
Indicates whether to transfer the configuration files using a locally mapped or mounted drive.
The mapped parameters are:
searchMappedConfigPath
The directory to which the search web server configuration files are copied.
Files and directories are created under the searchMappedConfigPath/instance_name_solr directory.
Examples
The following examples outline the typical scenarios when configuring the WebSphere Commerce search web server:
Replace [search_server_config] in the command line with the following parameter if you are:
    • Not using the automated IHS web server configuration.
-DautoConfigSearchWebserver=false
Replace [search_server_config] in the command line with the following parameters if you are:
    • Using the automated IHS web server configuration,
    • Sharing the IHS from your WebSphere Commerce instance, and
    • Your IHS is local.
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true
Replace [search_server_config] in the command line with the following parameters if you are:
    • Using the automated IHS web server configuration,
    • Sharing the IHS from your WebSphere Commerce instance,
    • Your IHS is remote, and
    • Your WebSphere Commerce web server does not use FTP or NFS for remote configuration. Or your WebSphere Commerce web server uses NFS for remote configuration and the NFS mount is in place.
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true
Or, if your WebSphere Commerce web server uses FTP for remote configuration:
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true -DsearchFtpUserPwd=your_FTP_password
Where your_FTP_password is the password for the FTP server running on your IHS web server host.
Or, when you want to ensure that FTP or NFS is not used for remote configuration:
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true -DsearchIsConfigViaFTP=false -DsearchIsConfigViaNFS=false
Replace [search_server_config] in the command line with the following parameters if you are:
    • Using the automated IHS web server configuration,
    • Using a separate IHS,
    • Your IHS is remote, and
    • You are not automatically transferring the files to the remote machine.
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=false
-DsearchWebserverHostname=yourSearchIHSHostName
-DsearchWebserverInstallLocation=thePathToIHSInstallDirOnYourSearchIHSHost
-DsearchPluginInstallLocation=thePathToPluginInstallDirOnYourSearchIHSHost
-DsearchRemoteConfigPath=pathWhereSearchIHSConfigFilesWillReside
For example:
-DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=false
-DsearchWebserverHostname=search.example.com
-DsearchWebserverInstallLocation=/usr/IBM/WebSphere/HTTPServer
-DsearchPluginInstallLocation=/usr/IBM/WebSphere/HTTPServer/Plugins
-DsearchRemoteConfigPath=/usr/IBM/WebSphere/HTTPServer/solrHttpConf1
Description: Feature Pack 6 or later
searchPort
The WebSphere Application Server virtual host port number to listen on for the WebSphere Commerce search application.
The value must be a valid and available TCP port.
The default value is 3737.
If the script runs successfully in the runtime environment, a BUILD SUCCESSFUL message appears in the command window where you ran the script and in the WC_installdir/instances/instance_name/logs/enablestore-enhancements_timestamp.log file. For enablement details, see theWC_installdir/instances/instance_name/logs/enablestore-enhancements_timestamp.log log file.
If the script runs successfully, the message enableFeature.bat completed is displayed in the command window. For enablement details, see the WCDE_installdir\logs\enableFeature.log file.
  1. Configure the Web server for the Solr application
The following configuration options are available, depending on your web server and WebSphere Commerce Feature Pack version:
    • WebSphere Commerce search deployment tasks include steps to manually update the web server configuration for IBM HTTP Server (IHS).
This approach includes the following considerations:
      • You created the WebSphere Commerce search web server httpd.conf file.
      • A directive to listen on the search virtual host port is added.
      • The web server plug-in is installed on the web server host.
    • Description: Feature Pack 5 or laterWebSphere Commerce search deployment tasks include steps to help automate updating the web server configuration when using IBM HTTP Server (IHS). This automation is achieved by optionally passing in more configuration parameters when you are running the enablement scripts during the previous step. For more information, see the previous step.
    • For configuring non-IHS web servers such as IIS and SunOne, consult the provided documentation to update the configuration.
  1. Description: WebSphere Commerce DeveloperRepublish the application:
    1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
    2. Right click LOBTools and select OpenLaszlo Migration > Compare Customizations.
    3. Rebuild any projects that are required to be rebuilt in the workspace. For example:
      • Rebuild LOBTools. Right-click LOBTools, then select Build OpenLazlo Project
    4. Start the WebSphere Commerce Test Server. Some errors are displayed in the console. These errors can be safely ignored.
    5. In the Servers view, right-click the test server then click Publish.
    6. Wait for the application to finish publishing and to restart. Ensure that no errors are displayed.
g.            If you customized a previous version of Management Center, see Migrating Management Center to migrate those customizations to the latest Management Center version.
  • Ensure that you publish the Madisons store archive after you install Feature Pack 1 or later. You might see a different store name for Madison starter store, depending on your version of the installed Feature Pack. If Feature Pack 1 is installed, the store name isMadisons.sar. If Feature Pack 2 or later is installed, the store name is Madisons-FEP.sar. When you install Fix Pack 1 or later, a new version of Madisons.sar is installed, containing the latest fixes and necessary extension points. The Brazil starter store, MayUJoy starter store, and Madisons starter store enhancements store archives do not function correctly with earlier versions of the Madisons starter store.
  • If you are enabling starter store enhancements in the WebSphere Commerce development environment, the default configuration includes a Derby database with all base, non-feature pack, starter stores, including the Madisons starter store, pre-published. If you require a feature pack version of a starter store, publish the feature pack version by using a different store name. You can create a database without the pre-published stores or restore to a clean bootstrap Derby database. Then, you can publish the feature pack version of the starter store. Also, when you configure the WebSphere Commerce development environment you can select to a new bootstrap Derby database without the prepublished starter stores.
  • See: First steps after enabling features.
  •  
If you encounter problems while installing a WebSphere Commerce feature pack or enabling a feature on a WebSphere Commerce instance, review this section for common issues.



 [VT1]Tarunam : Just check if we need this or not or before Feature pack enablement should be sufficient.
 [VT2]Tarunam: These are pre-requisites so follow on SOS basis.

No comments:

Post a Comment