Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application failed to start with NoUniqueBeanDefinitionException #905

Open
pankajcharpe opened this issue Apr 2, 2023 · 0 comments
Open

Comments

@pankajcharpe
Copy link


APPLICATION FAILED TO START


Description:

2023-04-02 10:08:29.297 DEBUG 14236 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : Application failed to start due to an exception

org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.shopizer.core.modules.integration.shipping.model.ShippingQuoteModule' available: expected single matching bean but found 6: usps,ups,weightBased,priceByDistance,storePickUp,customShippingPriceModule

Field canadapost in com.shopizer.core.business.configuration.ModulesConfiguration required a single bean, but 6 were found:
- usps: defined in class path resource [spring/shopizer-core-modules.xml]
- ups: defined in class path resource [spring/shopizer-core-modules.xml]
- weightBased: defined in class path resource [spring/shopizer-core-modules.xml]
- priceByDistance: defined in class path resource [spring/shopizer-core-modules.xml]
- storePickUp: defined in class path resource [spring/shopizer-core-modules.xml]
- customShippingPriceModule: defined in class path resource [spring/shopizer-core-modules.xml]

Action:

Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed

SaibalCts23 pushed a commit to SaibalCts23/shopizer that referenced this issue Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant