2017-08-09 46 views
0

私はマイクロサービスアーキテクチャーを使用している初心者で、camunda(読み取り専用ビジネスプロセスツール(ライブラリ))を使用する別のモジュールからBeanにアクセスします。UnsatisfiedDependencyException Bean名でのエラーフィールドで表される満足しない依存関係

@Configuration 
@ComponentScan(basePackages = {"com.example"}, excludeFilters={ 
@ComponentScan.Filter(type=FilterType.ASSIGNABLE_TYPE, value=SpringProcessEngineServicesConfiguration.class)}) 

現在のモジュールが与えて起動しません:エラー不満の依存関係は、私は以下のコードでそれを排除しようとしたので、まだ私は私の現在のモジュールでcamundaから任意の豆を必要としないcamundaインターフェースから来ています以下のスタックトレース:それは解決するのに長い時間がかかったものの、

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.camunda.bpm.engine.spring.SpringProcessEngineServicesConfiguration': Unsatisfied dependency expressed through field 'processEngine': Error creating bean with name 'processEngineFactoryBean': FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.exception.NotValidException: Filter name must not be null or empty: name is null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineFactoryBean': FactoryBean threw exception on object creation; nested exception is org.camunda.bpm.engine.exception.NotValidException: Filter name must not be null or empty: name is null 
+0

正確に言うには少しの詳細があります。問題は、 'processEngineFactoryBean'というbeanを作ることです。このBeanのコードとSpringの設定関連コードは役に立ちます –

+0

processEngineFactoryBeanはcamundaに属しています。私は、現在のモジュールでこのcamundaライブラリを必要としません。これは、依存関係として追加したモジュールによって使用されます。これで私の現在のモジュールが起動しなくなる – Etch

+0

私はこのprocessEngineFactoryBeanで他のモジュールにアクセスできます。私はコードを使用します@Configuration @ComponentScan(basePackages = {"com.example"} – Etch

答えて

1

私の解決策は単純でした。私は以下のコードでそれを解決するために管理:

<exclusions> 
    <exclusion> 
     <groupId>org.camunda.blablabla</groupId> 
     <artifactId>*</artifactId> 
    </exclusion> 
</exclusions> 

行うために必要なすべてのモジュールの依存関係セクション内のすべてのcamundaの依存関係を除外することでした。愚かな私!

関連する問題