Spring 3.1.2 プロジェクトで swagger-springmvc 0.6.6 を使用しようとしています。しかし、アプリケーションを Tomcat にデプロイすると、例外が発生して失敗します。
使用しているバージョンに問題があるようです。swagger-springmvc は、Spring 3.1.2 jar と競合する Spring 3.2.4 jar も取り込みます。
エラー:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.security.filterChains': Cannot resolve reference to bean
'org.springframework.security.web.DefaultSecurityFilterChain#2'
while setting bean property 'sourceList' with key [2]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.security.web.DefaultSecurityFilterChain#2
.......
....nested exception is java.lang.ClassNotFoundException:
org.springframework.cache.ehcache.EhCacheFactoryBean
このorg.springframework.cache.ehcache.EhCacheFactoryBean
クラスは、Spring 3.1.2 と Spring 3.2.4 の両方にあります。
ローカル smachine でアプリを実行しようとすると、問題なく実行されます。
誰かが問題を解決するのを手伝ってくれますか?