cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error building Promotion Engine Trail: Invalid content was found starting with element 'requires-extension'. One of '{hmcmodule, meta}' is expected

0 Kudos
477

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>
 

Accepted Solutions (0)

Answers (2)

Answers (2)

alex_alvarez1
Product and Topic Expert
Product and Topic Expert
0 Kudos

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).

0 Kudos

The problem disappeared after I did:

cd $HYBRIS_HOME_DIR/installer; ./install.sh -r b2c_acc setup;

Former Member
0 Kudos

I am also facing the same issue, but installing the recipie b2b_acc is not resolving the issue.

Any help would be appreciated