How to integrate AEM 6.4 with Hybris | Community
Skip to main content
phani-aem-dev
May 8, 2019
Solved

How to integrate AEM 6.4 with Hybris

  • May 8, 2019
  • 1 reply
  • 1137 views

Hi All,

I am trying to connect AEM 6.4 with Hybris,

Steps I've followed :

1. I've installed package cq-hybris-content-6.3.2 via package manager,

2. I've added cq:commerceProvider as hybris in my page and component JCR content (example  /content/aemtraining/en/login-page/jcr:content)

3. In the component servlet, I've tried to do req.getResource().adaptTo(HybrisService.class) and req.getResource().adaptTo(HybrisService.class)

4. Deployed my bundle, however, I am getting null always from the adaptTo method.

Can somebody explain to me what extra needs to be done?

Note: I don't want to install the demo package geometrixx

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by user05162

As per the documentation at [1], the following packages are required. Can you install these packages and let us know if this is still an issue?

Packages Needed for eCommerce with hybris

To install eCommerce functionality you need:

  • Your hybris server, available from hybris.
  • AEM eCommerce framework:
    • this is part of a standard AEM installation
  • AEM Geometrixx-all package:
    • cq-geometrixx-all-pkg
  • AEM hybris content packages:
    • cq-hybris-content-6.3.2
    • hybris-specific API implementation
    • cq-geometrixx-hybris-content-6.3.2
    • a reference implementation to illustrate use of hybris (geometrixx-outdoors/en_US)

Also, check if hybris server is running and AEM-Hybris connector is configured properly to find the hybris server.

If this is still an issue, setup a DEBUG level logger on "com.adobe.cq.commerce" to get more information about the null value.

[1] hybris

[2] Developing with hybris

1 reply

user05162Adobe EmployeeAccepted solution
Adobe Employee
May 8, 2019

As per the documentation at [1], the following packages are required. Can you install these packages and let us know if this is still an issue?

Packages Needed for eCommerce with hybris

To install eCommerce functionality you need:

  • Your hybris server, available from hybris.
  • AEM eCommerce framework:
    • this is part of a standard AEM installation
  • AEM Geometrixx-all package:
    • cq-geometrixx-all-pkg
  • AEM hybris content packages:
    • cq-hybris-content-6.3.2
    • hybris-specific API implementation
    • cq-geometrixx-hybris-content-6.3.2
    • a reference implementation to illustrate use of hybris (geometrixx-outdoors/en_US)

Also, check if hybris server is running and AEM-Hybris connector is configured properly to find the hybris server.

If this is still an issue, setup a DEBUG level logger on "com.adobe.cq.commerce" to get more information about the null value.

[1] hybris

[2] Developing with hybris