Error after upgrading camel-cxf to 2.15.2 . Class Cast exception

送分小仙女□ 提交于 2019-12-05 15:50:13

Common problems found with camel and cfx:

  • Duplicated versions of camel/cfx on the shaded jar files, because I found problems with cxf - 3.0.12 and 3.1.10.
  • Problems on the camel TypeConverter.

Solution:

  • Maven dependencies, apache cxf version 2.7.18 and apache camel version 2.17.2.

cxf-bundle

camel-core

camel-cxf

  • Include this in the shaded maven pom,

                <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                    <resource>META-INF/services/org/apache/camel/TypeConverter</resource>
                </transformer>
    
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!