java报错, 求大神指导,明确方向。解决思路,拜谢了。

吴英强 2013-09-16 02:30:23
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'cxf' must be of type [org.apache.cxf.Bus], but was actually of type [org.apache.cxf.bus.spring.SpringBus]
...全文
106 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
oh_Maxy 版主 2013-09-17
  • 打赏
  • 举报
回复
有定义为(inner bean)的配置么?这个bean的配置贴出来看看
吴英强 2013-09-17
  • 打赏
  • 举报
回复
试了试, 貌似不行。
失落夏天 2013-09-16
  • 打赏
  • 举报
回复
Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: 把这个异常翻译一下,感觉说的挺具体的吧。 具体我不知道什么原因,看异常应该是 cxf这个对象要求为org.apache.cxf.Bus的形式,你定义成了org.apache.cxf.bus.spring.SpringBus的形式。

50,523

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧