Thursday, June 30, 2016

NoClassDefFoundError | project dependency



 CommerceSrvr  E WcsApp initialize CMN0409E: The following error occurred during processing: "{0}". java.lang.NoClassDefFoundError: com.custom.search.endeca.query.NavigationQuery
    at com.custom.mro.commerce.seo.SEORegistry.traverse(SEORegistry.java:332)
    at com.custom.mro.commerce.seo.SEORegistry.traverse(SEORegistry.java:316)
    at com.custom.mro.commerce.seo.SEORegistry.populate(SEORegistry.java:247)
    at com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry.initialize(AbstractManagedDynamicCacheRegistry.java:167)
    at com.custom.mro.commerce.seo.SEORegistry.initialize(SEORegistry.java:120)
    at com.ibm.commerce.registry.RegistryManager.initializeRegistryEntry(RegistryManager.java:140)
    at com.ibm.commerce.registry.RegistryManager.initializeRegistryEntry(RegistryManager.java:169)
    at com.ibm.commerce.registry.RegistryManager.initialize(RegistryManager.java:95)
    at com.ibm.commerce.server.WcsApp.registryInit(WcsApp.java:624)
    at com.ibm.commerce.server.WcsApp.initialize(WcsApp.java:473)
    at com.ibm.commerce.server.WebApp


Fix:
In WC->Java EE Module dependency


DataProject-->Java EE Module dependency --check EnrichedSiteSearch.jar



Sunday, May 1, 2016

Creating Custom Commerce Composer Widget

https://www.ibm.com/support/knowledgecenter/SSZLC2_8.0.0/com.ibm.commerce.pagecomposerframework.doc/tasks/tpzwidgetcreation.htm?lang=en

Create new Project and XML

C:\WCDE80\workspace\NewWidgetProject\NewWidgetPatternInputFile.xml

Replace CustmVendorName ---> name of  commerce project company name

         identifier="BrandsDisplayWidget" UIObjectName="BrandsDisplayWidget"
     displayName="Brands Display Widget" description="This widget is used to display brands in alphabetical order in brands page"
     widgetDisplayGroups=""
     widgetRestrictionGroups="" >
      
 
Right Click Run Configurations

Make sure to select the ID




Wednesday, February 17, 2016

Debugging a print issue | Chrome

To access the Rendering Settings on Chrome debugger. Enable by clicking on the drop down on extreme left icon.

When working with CSS and DIV issues, Chrome debugger is a great first step and then if the JSP has an issue with missing end DIV tags, developers need to go in and indent and figure out the missing or DIV tags.

 


Check Emulate Print media to the view the page with print media check. and you can also run javascript Jquery commands in console to find any Div with hidden elements.




You can also delete various Div classes and figure the faulty DIV.




Tuesday, February 16, 2016

Enabling SEO | Testing with IHS

To test the SEO on local, you need to have corresponding rewrites and rewrite engine turned on in
C:\IBM\HTTPServer\conf and check logs in C:\IBM\HTTPServer\conf. Also if you have multiple esites, it is important to get the virtual host for each esite and allowed host setting in wc-server.xml

<VirtualHost *:80>
RewriteEngine on

RewriteCond %{REQUEST_URI} !^/webapp.*$
RewriteCond %{REQUEST_URI} !^/wcsstore.*$

</VirtualHost>


<VirtualHost  abcd.localhost.com:80>
RewriteEngine on

RewriteCond %{REQUEST_URI} !^/webapp.*$
RewriteCond %{REQUEST_URI} !^/wcsstore.*$

</VirtualHost>

C:\Windows\System32\drivers\etc
127.0.0.1       localhost abcd.localhost.com

Command prompt: C:\>ipconfig /flushdns

In wc-server.xml find this section and enable context root.

<SEOConfiguration defaultUrl="" dynamicUrl="true" enable="true">
    <context-root-rewrite value="/" />
</SEOConfiguration>  


Tuesday, January 12, 2016

DB2 SQL Error: SQLCODE=-1476, SQLSTATE=40506, SQLERRMC=-964, DRIVER=4.12.55

While running preprocessing got the following error:

INFO: Error for batch element #1: DB2 SQL Error: SQLCODE=-1476, SQLSTATE=40506,
SQLERRMC=-964, DRIVER=4.12.55

C:\IBM\WCDE_ENT70\bin>di-preprocess.bat C:\IBM\WCDE_ENT70\search\pre-processConf
ig\MC_10001\DB2  -fullbuild true -localename en_US -force true

com.ibm.commerce.foundation.dataimport.preprocess.DataImportPreProcessorMain logExitCode
INFO: The program exiting with exit code: 1.
Data import pre-processing was unsuccessful. An unrecoverable error has occurred

Fix:  DB2 transaction logs are full.

Check the file size ; Goto DB2CMD
set DB2INSTANCE=MALL
db2 get db config for mall
LOGFILSIZ 2048
Ran this command:
db2 UPDATE db cfg for mall using LOGFILSIZ 4096
Windows services DB2 : restart
After this the pre-processing was successful.

Thursday, October 1, 2015

IBM Websphere Commerce Version 8.0 Announced !!

Exciting news for Websphere Commerce developers. Big news items.

    DHTML
    Open Source Spring framework.
    IBM Customer Service
    Management Center UI revamped.
    Upgraded RAD 9.5, WAS , DB2

As per IBM, these are 2 big modules in the new Version 8.0. Along with upgrades to application server and stack.

IBM Customer Service for WebSphere Commerce Version 8.0 delivers enhancements to Customer Service for WebSphere Commerce that offer a better customer service and support experience. The customer service representative (CSR) can utilize the same buying experience that customers use to provide assistance with site activities, for example, assist customers to manage their cart content and assist with the checkout process. As a part of the buying experience, the CSR can look up customer accounts and orders, and help customers with their account management. Customer Service for WebSphere Commerce is a separately purchased solution for

WebSphere Commerce V8.0 clients. IBM Management Center for WebSphere Commerce In Version 8.0, the Management Center is updated to use Dynamic HTML (DHTML) and the open source Spring Framework. This update makes it easier for developers to customize and embed custom tools in the Management Center. With DHTML, Management Center is no longer dependent on AdobeTM Flash technology, and developers who customize the Management Center can now view their changes IBM United States Software Announcement 215-305 IBM is a registered trademark of International Business Machines Corporation 2 without first compiling their code. Additionally, the Management Center user interface now has a new look.

    Ref: http://www-01.ibm.com/common/ssi/rep_ca/5/897/ENUS215-305/ENUS215-305.PDF
    

Sunday, September 13, 2015

SEO | XML | SitemapGenerate


You can create a sitemaps job using the Scheduler in the Administration Console. Create a new schedule job SitemapGenerate  with parameters

example:
storeId=10501&catalogId=10051&sitemapView=SEOSiteMapView&storeType=MHS&uploadXMLToEAR=true&compareFiles=true

In toolkit the files are generated at the following location with pattern sitemap_10501.
C:\IBM\WCDE_ENT70\workspace\Stores\WebContent

The command calls SEOSitemap.jsp which internally calls the category\subcategory\PDP and all other content that needs to be added to the sitemap_storeID.xml e.g. sitemap_105010.xml.

Do not added HTML comments into the JSPs. Specially more important for JSPs used b the SEO process since these would be reflected in the SEO xml's generated.
Also do not miss to add the correct pageType for SEO friendly URLs.

Custom URL contents to be included in the Sitemap, a SEOSitemapExt.jsp is included under Stores/WebContent/AuroraStorefrontAssetStore. This file is imported at the end of SEOSitemap.jsp which generates all the urls to be included in the index by the search engine
The constructedUrlCounter and urlCounter variables need to be updated for each added URL
URLs to the sitemap by defining one or more ...