on 2018 Jul 18 1:29 PM
Hello,
I am following the "Promotion Engine Trail". Previously everything worked fine in the 123 trail, but in the sub-part "Defining a New Rule-Aware Object" item 3 "Run ant clean all and confirm that the CustomerReviewRAO class is generated and the UserRAO class has a new field." I get an error when issuing "ant clean all":
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-commerce/ruledefinitions
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-commerce/ruledefinitions
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/ruledefinitions_srctouch
[testClassesScanner] Found 7 ruledefinitions testclasses in 670.6 μs
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/ruledefinitions_testsrctouch
[echo] building extension 'lucenesearch'...
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-platform-optional/lucenesearch
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-platform-optional/lucenesearch
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/lucenesearch_srctouch
[testClassesScanner] Found 7 lucenesearch testclasses in 714.0 μs
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/lucenesearch_testsrctouch
[echo] building extension 'promotionengineservices'...
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-commerce/promotionengineservices
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/bin/ext-commerce/promotionengineservices
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/promotionengineservices_srctouch
[testClassesScanner] Found 42 promotionengineservices testclasses in 2.407 ms
[touch] Creating /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/hybris/temp/hybris/touch/promotionengineservices_testsrctouch
[echo] building extension 'promotionenginetrail'...
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/custom/promotionenginetrail
[copy] Copying 1 file to /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/custom/promotionenginetrail
[schemavalidate] /Users/f.monteirodecarvalho/Repos/hybris-toolkit-build/custom/promotionenginetrail/extensioninfo.xml:24:60: cvc-complex-type.2.4.a: Invalid content was found starting with element 'requires-extension'. One of '{hmcmodule, meta}' is expected.
Any ideas?
Here is my localextensions.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<hybrisconfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="resources/schemas/extensions.xsd">
<extensions>
<path dir='${HYBRIS_BIN_DIR}' autoload='false' />
<path dir='${HYBRIS_BIN_DIR}/../../custom' autoload='false' />
<extension name="platformbackoffice"/>
<extension name="platformwebservices"/>
<extension name="yempty" />
<extension name="yhacext" />
<extension name="promotionengineservices" />
<extension name='promotionenginetrail' dir="${HYBRIS_BIN_DIR}/../../custom/promotionenginetrail"/>
</extensions>
</hybrisconfig>
Request clarification before answering.
100478972930 try to validate the extensions.xml file with an XML validator, using theextensions.xsd file. Also check for file encoding issues (UTF-8, etc).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem disappeared after I did:
cd $HYBRIS_HOME_DIR/installer; ./install.sh -r b2c_acc setup;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.