Wednesday, October 5, 2016

error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

This means libraries are missing . Run either of following commands :


sudo apt-get install libaio1 libaio-dev
or
sudo yum install libaio

Pass extra parameter to linkservlet while previewing

Sometime to fulfill business needs we would need to send extra parameter to the linkservlet Following there step process needs to be done for that:

1) Update the war using below steps :

extract the ifcr.war at ENDECA_TOOLS_ROOT/server/webapps to any temp folder say ifcr-11.0.0
extract the ifcr-11.0.0\WEB-INF\resources\bundles\25\ExperienceManagerContent-11.0.0-xmgr.jar to any temp folder say ExperienceManagerContent-11.0.0-xmgr

you will need to change ifcr-11.0.0\WEB-INF\resources\bundles\25\ExperienceManagerContent-11.0.0-xmgr\content\app.js file as below :

make changes to preview: function(f, c)  function :

Add following :

b = Ext.urlAppend(b, "newVariable=" + encodeURIComponent("my custom variable"));

2) Once this is added , copy the file to any location say desktop. Now use 7-zip to drag the file in war as explained in following blog :

update war file content

3) Deploy the war as explained in following blog :

Deploy custom Ifcr war

Update a war file content

There can be instances where you would like to update the contents of a war file - say some js,css or html within a war file.
This can be done using 7-zip tool. Dont forget to download and install that first before going further.


Open the war file in 7zip by right clicking the file -> 7zip -> open archive
Go to the path location where you want to add the file*
Now drag drop any file (say from desktop) to that location in 7zip
Click yes when prompted for confirmation
Close the 7-zip

You are done!!


* you can even go inside a jar file by double clicking

How to update ifcr.war file in Endeca ToolsAndFramework to a different war

Folks - This would be rarest of rare scenario. If you want to deploy a different war file (say myTestIfcr.war) than the ifcr-.war in Endeca ToolsAndFramework , follow the following steps :

1. Stop Tools and Framework service
2. Take backup of existing ifcr.war at ENDECA_TOOLS_ROOT/server/webapps
2. Delete existing ifcr.war at ENDECA_TOOLS_ROOT/server/webapps
3. Copy your war file (myTestIfcr.war) at ENDECA_TOOLS_ROOT/server/webapps
4. open ifcr.xml at ENDECA_TOOLS_CONF/conf/Standalone/localhost/ifcr.xml
5. Change ifcr.war to myTestIfcr.war
6. Delete following folders :    
ENDECA_TOOLS_CONF/state/sling/_ifcr/felix
ENDECA_TOOLS_CONF/state/sling/_ifcr/startup
7. Start Tools and framework service

Monday, October 3, 2016

Unable to retrieve the dimension information : Endeca Experience manager issue

Folks - Sometime Endeca experience manager aka XM gives hard time for silly or sometime no reason.

Following is one of the similar issue you might face in XM when you click on some pages/content especially containing a link: Unable to retrieve the dimension information.



You might also see the navigation states not showing up for the linkEditor


The issue is that somehow the authoring dgraph has come down as shown below under components section of EAC admin console in workbench:

Click on start highlighted above. This should fix the issue.