I am able to run the demoappwtp based on http://www.broadleafcommerce.org/conflu ... ipse+-+WTP
Then I try to customize the payment workflow by following http://www.broadleafcommerce.org/conflu ... figuration
I created two java class:
my own credit module com.rrhui.payment.service.module.CreditCardModule.
my own payment service com.rrhui.payment.service.PaymentServiceImpl
I also created my own. /WEB-INF/applicationContext-custom-payment.xml,
----
<bean id="blCreditCardService" class="com.rrhui.payment.service.PaymentServiceImpl">
<property name="paymentModule" ref="myCreditCardModule"/>
</bean>
<bean id="myCreditCardModule" class="com.rrhui.payment.service.module.CreditCardModule">
<property name="param1" value="value1"/>
</bean>
--------
and add it to the web.xml as
<display-name>BroadleafCommerceDemo</display-name>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>bl.root</param-value>
</context-param>
<context-param>
<param-name>patchConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext-custom.xml
/WEB-INF/applicationContext-custom-payment.xml
/WEB-INF/applicationContext-email.xml
/WEB-INF/applicationContext-search.xml
/WEB-INF/applicationContext-security.xml
</param-value>
</context-param>
.....
Then, I restart the eclipse-tomcat server, and I go through the shopping-checkout flow from http://localhost:8081/broadleafdemo.
My runtime parameter is as
-Xmx512m -XX:MaxPermSize=512M
-Dcatalina.base="D:\MyWork\RRuriProject\broadleaf\.metadata\.plugins\org.eclipse.wst.server.core\tmp0" -Dcatalina.home="D:\ProgramFiles\apache-tomcat-6.0.32" -Dwtp.deploy="D:\MyWork\RRuriProject\broadleaf\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps" -Djava.endorsed.dirs="D:\ProgramFiles\apache-tomcat-6.0.32\endorsed"
the java class was compiled under D:\MyWork\RRuriProject\broadleaf\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps.
However, my credit card module was not picked up at all.
I notice the payment workflow was launched by the checkout workflow, but it should still use my new creditcard module, right?
Did I missing any steps.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.