Skip to Content
1
Former Member
Jan 24, 2015 at 07:38 PM

Problems including secureportaladdon

555 Views

Hallo all,

while stepping through the wiki page for including the secureportaladdon I'm facing a lot of errors which make it impossible to use.

  • B2B Accelerator 5.4.0.0

  • Custom module 'wnecom'

  • Using SAP-Integration

I read about the fixes regarding 'project.properties.template' and adding 'addonsupport' to extensioninfo.xml and considered both of them!


Following https://wiki.hybris.com/display/accdoc/secureportaladdon+AddOn+-+Technical+Guide I faced an error after executing 'ant all' after 'ant addoninstall':

D:\Project\hybris\bin\platform\resources\ant\antmacros.xml:721: java.lang.IllegalArgumentException: cannot merge namespace ((wnecomfulfilment process)) into (()) due to duplicate attribute 'ConsignmentProcess.done(java.lang.Boolean):((wnecomfulfilmentprocess))::YAttributeDescriptor[wnecomfulfi lmentprocess-items.xml:21(AttributeTagListener)][PROPERTY]' vs 'ConsignmentProcess.done(java.lang.Boolean):((yacceleratorfulfilmentprocess))::YAttributeDescript or[yacceleratorfulfilmentprocess-items.xml:21(AttributeTagListener)][PROPERTY]' at de.hybris.bootstrap.typesystem.YNamespace.mergeNamespace(YNamespace.java:300) at de.hybris.bootstrap.typesystem.YTypeSystem.mergeNamespaces(YTypeSystem.java:85) at de.hybris.bootstrap.typesystem.YTypeSystem.finalizeTypeSystem(YTypeSystem.java:76) at de.hybris.bootstrap.typesystem.YTypeSystemLoader.finish(YTypeSystemLoader.java:583) at de.hybris.bootstrap.typesystem.YTypeSystemSource.readTypeSystem(YTypeSystemSource.java:125) at de.hybris.bootstrap.typesystem.YTypeSystemSource.getTypeSystem(YTypeSystemSource.java:55) at de.hybris.bootstrap.codegenerator.jalo.JaloClassGenerator.generateClasses(JaloClassGenerator.java:50)


Because we're using a custom module, I modified the addoninstall command using 'wnecomstorefront' instead of 'yb2bacceleratorstorefront':

ant addoninstall -Daddonnames="secureportaladdon" -DaddonStorefront.yb2bacceleratorstorefront="wnecomstorefront"

This also ended up in errors during 'ant all' because there were references to yb2bacceleratorstorefront project in the files copied to the storefront. I also modified those files and referenced the wnestorefront extension so ant ended SUCCESSFUL. Nevertheless after executing Update (as described in the wiki) I always get a 404 opening the storefront-root without any log statements...


Is there a way using secureportaladdon with a custom module? What's the way to go if we need registration functionality in b2baccelerator? Also we have to implement opt-in instead the standard approval-workflow. My idea was to use secureportaladdon (first of all get it running the standard way), create a custom extension out of it (like described here: https://answers.sap.com/questions/12751554/secureportaladdon.html) and change the workflow to our needs...

Any suggestions what to do?

Regards, Tim