issue with URL mapping internal to broadleaf
Posted: Wed Feb 15, 2012 6:34 pm
I am trying to intigrate my project in Broadleaf 1.5.2 version, used archetype to set up initial project. As soon as I add
<mvc:annotation-driven/> tag I am seeing following exception
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler 'mycompanyCheckoutController' to URL path [/checkout/checkout.htm]: There is already handler of type [class org.broadleafcommerce.core.web.controller.checkout.CheckoutController] mapped.
Seems like the same URL mapping is mentioned in two different objects causing the handler not being able to map the URL. In this case
'/checkout/checkout.htm' might be mentioned in CheckoutController & in 'mycompanyCheckoutController'
My project is not AOP project and I am trying to see if I can get both of them work together or integrate them easily. But the above issue seems something internal in Broadleaf.
Also could you please advise on the version which you recommend for my POC with broadleaf.
Any advise is much appreciated.
<mvc:annotation-driven/> tag I am seeing following exception
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Cannot map handler 'mycompanyCheckoutController' to URL path [/checkout/checkout.htm]: There is already handler of type [class org.broadleafcommerce.core.web.controller.checkout.CheckoutController] mapped.
Seems like the same URL mapping is mentioned in two different objects causing the handler not being able to map the URL. In this case
'/checkout/checkout.htm' might be mentioned in CheckoutController & in 'mycompanyCheckoutController'
My project is not AOP project and I am trying to see if I can get both of them work together or integrate them easily. But the above issue seems something internal in Broadleaf.
Also could you please advise on the version which you recommend for my POC with broadleaf.
Any advise is much appreciated.