Tuesday, April 29, 2014

Version issues with DSP Taglib

Error Log:

1398356350603               /atg/registry/webappregistry/ServletContextWebAppRegistry       
The version of the DSP Taglib from the web-app "BCC" found
within "zip:C:/ATG/ATG10.2/EAR/BCC.ear/atglib/_DAS_slib_sclasses.jar!/"
did not match the expected version. Please update all copies of the
 DSP Taglib with the version in $DYNAMO_HOME/DAS/taglib/dspjspTaglib/1.0/lib/
and re-assemble your application. Enable loggingDebug on this component
and restart to see which resource differs.


Fix: To fix above issue, replace taglibs of BCC/j2ee-apps/BCCWeb/BCCWeb.war/WEB-INF/lib from C:\ATG\ATG10.2\DAS\taglib\dspjspTaglib\1.0

Note: This fix I am yet to test it in my local. Please try and update if it works.

Monday, April 28, 2014

Intergrating ATG-Endeca for Indexing

Note: This is with Version ATG 10.2 onwards Only


Step : 1

You have to have your below component configured to use your PCOC file like below

/atg/commerce/search/ProductCatalogOutputConfig/

definitionFile=/atg/commerce/endeca/index/product-sku-output-config.xml

Sample file Attached:
Step : 2

Your combined definition file should be a union of below xmls(OOTB+Custom)
Source files   

\config\config.jar/atg/commerce/endeca/index/product-sku-output-config.xml
\DCS\Endeca\Index\config\config.jar/atg/commerce/endeca/index/product-sku-output-config.xml
\DCS\Endeca\Index\SKUIndexing\config\config.jar/atg/commerce/endeca/index/product-sku-output-config.xml


Step : 3

Build level changes : Add the below modules in your ANT build.properties file
for eg:
my.ear.modules=DafEar.Admin,DCS.Endeca.Index.Versioned,DCS.Endeca.Index,DAF.Endeca.Index,DAF.Endeca.Assembler,DCS.Endeca.Index.SKUIndexing

Verification :  Once your build is up, you should be able to see this componenet via dyn/admin
http://mylocalserver:7001/dyn/admin/nucleus/atg/commerce/endeca/index/ProductCatalogSimpleIndexingAdmin/

Step : 4

Make these config layer changes.Override bases on your environments.

/atg/endeca/ApplicationConfiguration
baseApplicationName: myendecaapp
keyToApplicationName: default=myendecaapp,en=myendecaapp
workbenchHostName: myendeca.envr.server.name.com
workbenchPort: 8006

/atg/endeca/index/IndexingApplicationConfiguration
CAS Hostname: myendeca.envr.server.name.com
CAS Port: 8500

EAC Hostname: myendeca.envr.server.name.com
EAC Port: 8888

/atg/endeca/assembler/AssemblerApplicationConfiguration
currentMdexHostName: myendeca.envr.server.name.com
currentMdexPort: 16000

defaultMdexHostName: myendeca.envr.server.name.com
defaultMdexPort: 16000
applicationKeyToMdexHostAndPort: en= myendeca.envr.server.name.com:16000


Step 5: (Optional)

If you are setting up your endeca indexing from your BCC instance, you need to override the below component

Set the OnPubServer flag to false for the following components

/atg/commerce/search/ProductCatalogOutputConfig
/atg/commerce/endeca/index/CategoryToDimensionOutputConfig


Step 6:

Triggering Indexing from Dyn Admin:

Navigate : http://mylocalserver:7001/dyn/admin/nucleus/atg/commerce/endeca/index/ProductCatalogSimpleIndexingAdmin/

Trigger the BaseLine Index Button.Watch your ATG logs for issues.

#################################
Reference  : http://docs.oracle.com/cd/E23095_01/Platform.93/ATGSearchIntegration/html/s0202specifyingthedefinitionfileandth01.html

How to set up your local BCC.

How to set up your local BCC.

I thought to update here what I did for setting up my ATG-BCC up and running in my local box.


Steps I did:

1. Imported the db which is running, for a working instance.
2. Cleaned up the PUB schema -- refer the below links
    http://atgtech.blog.com/2013/10/15/159/

3.  delete from EPUB_COLL_WORKFLOW
     delete from EPUB_WORKFLOW_INFO
     delete from EPUB_WF_SERVER_ID
     commit;

4. Restart the server,
  4.1.1  select * from EPUB_WF_SERVER_ID   // in your pub schema
             this should show you the server id of your local machine. Important !!!!

5. Login to BCC with the credentials of the database as in step #1.

------------------------

Thinks to ensure:

There should be role assigned properly for the user "Admin"

To verify it:

Navigate to : http:/localhost:7001/dyn/admin/nucleus/atg/userprofiling/InternalProfileRepository/

<print-item item-descriptor="user" id="portal-admin" />

------ Printing item with id: portal-admin
<add-item item-descriptor="user" id="portal-admin">
  <set-property name="securityStatus"><![CDATA[EXPLICIT-SIGNIN]]></set-property>
  <set-property name="email"><![CDATA[anilal.testing@tester.com]]></set-property>
  <set-property name="password"><![CDATA[tes]]></set-property>
  <!-- rdonly   <set-property name="accessRights"><![CDATA[previewuserfull,seotagsfull,mediaread,sitecatalogread,sitecatalogfull,promotionsfull,tgtsgmtfull,storesfull,siteadminfull,pricelistsfull,siteadminread,externaluserfull,mediafull,storecontentread,internaluserfull]]></set-property>  -->

  <set-property name="roles"><![CDATA[internalUserAdministrationRole,epubSuperAdmin,merchandiserRole,promotionsAdministratorRole,portal-admin,personalizationRole,siteAdminRole]]></set-property>
  <set-property name="login"><![CDATA[admin]]></set-property>

</add-item>


Make sure that you have these roles set up.
epubSuperAdmin -- should exists for the user admin for the property "Roles"