Symptoms

During Ecommerce plug-in compilation "waf build" is failing with error:

# waf build
Waf: Entering directory `/EcommercePlugins/PLUGIN/.build'
Running with 12 parallel jobs.
[1/2] casecomp sources generation <- PLUGIN.lsa
Project::Project /EcommercePlugins/PLUGIN/PLUGIN.lsa parent=0
Project::Project /EcommercePlugins/PLUGIN/BM/BM.lsa parent=0xed8300
Error: cannot open file '/EcommercePlugins/PLUGIN/BM/BM.lsa'. (No such file or directory)
Exiting.
Waf: Leaving directory `/EcommercePlugins/PLUGIN/.build'
Build failed: LISA compiler exit code '1' is non-zero. CMD is '['--info', '--server', '--amt', '--postgre'] /EcommercePlugins/PLUGIN/PLUGIN.lsa'

Cause

Template from /usr/local/bm/share/DomainPluginTemplate was used to create plug-in, but code for Ecommerce plug-in is used.

Resolution

Build new plug-in from from Ecommerce template:

cd /usr/local/bm/share/EcommerceSDK/
PROJECT_NAME=MYTEST REGISTRAR_NAME=MyTest sh create_plugin.sh 

The script creates the plug-in files and places them into the /root/EcommercePlugins/MYTEST folder.

Copy all modified files from old plug-in and re-run waf build command.

Internal content