cer / event-sourcing-examples

Example code for my building and deploying microservices with event sourcing, CQRS and Docker presentation
Other
3.12k stars 946 forks source link

Issues running examples in Eclipse : 2EventStoreSubscriptionManagement was in project accounts-command-side-service #20

Open dimboyNew opened 8 years ago

dimboyNew commented 8 years ago

Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [net.chrisrichardson.eventstore.EventStoreSubscriptionManagement] is defined: expected single matching bean but found 2: eventStore,jdbcEventStore at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ... 27 more

cer commented 8 years ago

Please can you provide more information. What exactly are you running? And, how?

dimboyNew commented 8 years ago

Project: /event-sourcing-examples/accounts-command-side-service IDE: eclipse Operation: just run as an java application, with env arguments: -- Project and main class

[image: 内嵌图片 1]

-- arguments [image: 内嵌图片 2]

2016-07-20 11:14 GMT+08:00 Chris Richardson notifications@github.com:

Please can you provide more information. What exactly are you running? And, how?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cer/event-sourcing-examples/issues/20#issuecomment-233827510, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEFtDizOYjWy1ddPO5nXIRuDE_500ERks5qXZKAgaJpZM4JPbXS .

dimboyNew commented 8 years ago

hi , is it sufficient with these pictures and comments?

hope your reply

dim

2016-07-20 12:49 GMT+08:00 New Wang dimboynew@gmail.com:

Project: /event-sourcing-examples/accounts-command-side-service IDE: eclipse Operation: just run as an java application, with env arguments: -- Project and main class

[image: 内嵌图片 1]

-- arguments [image: 内嵌图片 2]

2016-07-20 11:14 GMT+08:00 Chris Richardson notifications@github.com:

Please can you provide more information. What exactly are you running? And, how?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cer/event-sourcing-examples/issues/20#issuecomment-233827510, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEFtDizOYjWy1ddPO5nXIRuDE_500ERks5qXZKAgaJpZM4JPbXS .

cer commented 8 years ago

Sorry for the delayed response. Eclipse has an issue with classpaths. If Module X depends on Module Y, which has testCompile dependency on artifact Z then Z is exported from Y and visible to X. This results in a conflict.

A new version of the Eventuate Client (+ minor change to example code) in the near future should address this problem.

In the meantime, please run from the command line