Page 1 of 2

Can't integrate authorize.net with version 3.0

Posted: Fri Jul 26, 2013 7:08 pm
by skala
I have taken the latest version and am unable to integrate authorize.net module with it. Get this below exception and not sure how to resolve. Please help.

Note: I had this working with previous version. And version 3.0 is not an upgrade, instead I got this as a fresh copy this month.


[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCompositePaymentService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPaymentWorkflow' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPaymentActivity' while setting bean property 'activities' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPaymentActivity' defined in resource loaded from byte array: Cannot resolve reference to bean 'blAuthorizeAndDebitWorkflow' while setting bean property 'workflow'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blAuthorizeAndDebitWorkflow' defined in resource loaded from byte array: Cannot resolve reference to bean 'blAuthorizeAndDebitCreditCardActivity' while setting bean property 'activities' with key [4]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blAuthorizeAndDebitCreditCardActivity' defined in resource loaded from byte array: Cannot resolve reference to bean 'blCreditCardService' while setting bean property 'paymentService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCreditCardService' defined in resource loaded from byte array: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/authorize/sim/Result

Re: Can't integrate authorize.net with version 3.0

Posted: Wed Jul 31, 2013 1:18 pm
by elbertbautista
The Authorize.net module has been updated to support 3.0 and should be in the develop branch now
https://github.com/BroadleafCommerce/bl ... ee/develop

Re: Can't integrate authorize.net with version 3.0

Posted: Sat Aug 10, 2013 10:23 pm
by skala
I am still getting the same error. I changed DemoSite's pom.xml to

Code: Select all

[<blc.thirdparty.version>2.3.0-SNAPSHOT</blc.thirdparty.version>


Previously it was using

Code: Select all

        <blc.thirdparty.version>2.0.2-GA</blc.thirdparty.version>


Is there anything else I need to change? I still get the same stack trace like before.

Re: Can't integrate authorize.net with version 3.0

Posted: Sat Aug 10, 2013 10:39 pm
by skala
Here are few important ones from the huge stack trace..

Code: Select all

[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blAuthorizeAndDebitWorkflow' defined in resource loaded from byte array: Cannot resolve reference to bean 'blAuthorizeAndDebitCreditCardActivity' while setting bean property 'activities' with key [4]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blAuthorizeAndDebitCreditCardActivity' defined in resource loaded from byte array: Cannot resolve reference to bean 'blCreditCardService' while setting bean property 'paymentService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCreditCardService' defined in resource loaded from byte array: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/authorize/sim/Result

Code: Select all

[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blAuthorizeAndDebitCreditCardActivity' defined in resource loaded from byte array: Cannot resolve reference to bean 'blCreditCardService' while setting bean property 'paymentService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCreditCardService' defined in resource loaded from byte array: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/authorize/sim/Result

Code: Select all

[artifact:mvn] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCreditCardService' defined in resource loaded from byte array: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/authorize/sim/Result

Code: Select all

[artifact:mvn] java.lang.NoClassDefFoundError: net/authorize/sim/Result

Re: Can't integrate authorize.net with version 3.0

Posted: Thu Aug 15, 2013 8:58 am
by skala
Any updates please?

Re: Can't integrate authorize.net with version 3.0

Posted: Thu Aug 15, 2013 10:39 am
by jskorton
When you updated Broadleaf to 3.0 did you update your workflows?

http://docs.broadleafcommerce.org/core/current/migration-notes/2.3-to-3.0-migration

Re: Can't integrate authorize.net with version 3.0

Posted: Thu Aug 15, 2013 10:49 am
by skala
It was a clean download and new eclipse project setup. I am not updating technically.

Re: Can't integrate authorize.net with version 3.0

Posted: Thu Aug 15, 2013 11:04 am
by jskorton
I suspect you need to look over your authorize.net dependency in your parent pom.

It should look like this:

<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-authorizenet</artifactId>
<version>${broadleaf.anet.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

Also, try doing a "mvn clean" on the project, maybe you still have the older version of the authorize.net module.

Re: Can't integrate authorize.net with version 3.0

Posted: Thu Aug 15, 2013 1:03 pm
by skala
Okay will check again, though I have checked these several times earlier.

I also suspect maven clean should work, but I do see the new authorize.net version when expanding dependency package in eclipse.

Will get back tomorrow to reconfirm.

Re: Can't integrate authorize.net with version 3.0

Posted: Fri Aug 23, 2013 2:34 am
by vojdan
Any update guys??

I get same or something very similar with Paypal.
And it's a new download, not an upgrade.