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

Custom addon controller is not getting called

Former Member
0 Likes
754

I have created a yaddon and installed to my storefront. I am trying to redirect from the storefront controller to a controller in addon I have got the files and folders of the addon in my storefront no issues in copying files after ant clean all command But when code is trying to redirect to my addon controller I get 404 in my browser.

I have mentioned component-scan in webspring and added my addon controller package in both storefront and addon webspring and have proper values in project.properties. and Also have addonsupport in localextension and proper extensioninfo file as mentioned in the wiki/help site.

Could someone please help ?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

make sure that you have added context component scan in addon-web-spring.xml

former_member1320010
Participant
0 Likes

Have you added the below config to your project.properties of the occaddon

 # Specifies the location of the spring context file added automatically to the global platform application context.
 XXXXoccaddon.application-context=XXXXoccaddon-spring.xml
 
 # Specifies the location of the spring context file which will be added to commerce web services web context
 
 XXXXwebservices.additionalWebSpringConfigs.XXXXoccaddon=classpath\:/XXXXoccaddon/web/spring/XXXXoccaddon-web-spring.xml
 
 XXXXwebservices.wro4jconfigscan.XXXXoccaddon=true
 
Former Member
0 Likes

Did anyone get solution for this.

Former Member
0 Likes

Hi did you get any solution for this? I am facing the same issue, My addon controller not get called.