I’m running Hybris 6.6 and are building a new addon, that is basically a controller and corresponding JSP. During runtime however, Hybris isn’t finding the controller bean and searches for JSP in the storefront folder (it’s not there, since the JSP is in the storefront addon folder).
I created the addon using extgen, and then installed it in the storefront using also ant.
Steps:
- Created component in -items.xml inheriting from SimpleCMSComponent
- Created controller inheriting from AbstractCMSController,
- Created JSP in addon folder,
- Created component and added to page slot via Imped,
- @Controller has the name equal to component + “Controller”
I’ve debuged the code, and when Hybris tries to find if there is a controller via getBeanFactory().contains(controller) it returns false. If I look at the bean list that the bean factory returns, the bean for the controller is not there.
Any clues on what’s happening? I’ve even tried to create the controller bean explicitly on the -web-spring.xml but doesn’t change anything.
Thank you