Page 1 of 1

No bean named 'blAuthorizeNetCheckoutService' is defined

Posted: Tue Aug 06, 2013 1:04 am
by sandeep.kaur
I downloaded DemoSite and configured it. Now I am trying to configure Authorizenet with DemoSite. I followed all the steps given here- http://docs.broadleafcommerce.org/core/ ... figuration

I am getting following error:
[artifact:mvn] [ERROR] 22:39:45 DispatcherServlet - Context initialization failed
[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'checkoutController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blAuthorizeNetCheckoutService' is defined
[artifact:mvn] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)


I added following bean definition in applicationContext.xml
<bean id="blAuthorizenetCheckoutService" class="org.broadleafcommerce.vendor.authorizenet.service.payment.AuthorizeNetCheckoutServiceImpl" />


Am I missing something here. Thanks.

Re: No bean named 'blAuthorizeNetCheckoutService' is defined

Posted: Wed Aug 07, 2013 4:18 pm
by elbertbautista
If you are not including the default application context that comes out of the box with the authorize.net module in your web.xml:

Code: Select all

    classpath:/bl-authorizenet-applicationContext.xml


You have to re-declare the component scans yourself in your own app context:

Code: Select all

    <context:component-scan base-package="org.broadleafcommerce.vendor.authorizenet"/>

Re: No bean named 'blAuthorizeNetCheckoutService' is defined

Posted: Wed Aug 07, 2013 4:54 pm
by sandeep.kaur
Thanks for the reply. I figured it out and added component scans and it worked.
Thanks Again.