websphere cxf factory 不兼容問題
来源:互联网 发布:如何修改tomcat的端口 编辑:程序博客网 时间:2024/05/23 14:22
If this is a record of possible occurences of this error then:
I just got this error on WAS (8.5.0.1), during the CXF (2.6.0) loading of the spring (3.1.1_release) configuration where a BeanInstantiationException rolled up a CXF ExtensionException, rolling up a IncompatibleClassChangeError. The following snippet shows the gist of the stack trace:
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.bus.spring.SpringBus]: Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990) ... 116 moreCaused by: org.apache.cxf.bus.extension.ExtensionException at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:167) at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:179) at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:138) at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:131) [etc...] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 118 moreCaused by: java.lang.IncompatibleClassChangeError: org.apache.neethi.AssertionBuilderFactory at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:284) [etc...] at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:586) at java.lang.ClassLoader.loadClass(ClassLoader.java:658) at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:163) ... 128 more
In this case, the solution was to change the classpath order of the module in my war file. That is, open up the war application in the WAS console under and select the client module(s). In the module configuration, set the class-loading to be "parent last".
This is found in the WAS console:
- Applicatoins -> Application Types -> WebSphere Enterprise Applications
- Click link representing your application (war)
- Click "Manage Modules" under "Modules" section
- Click link for the underlying module(s)
- Change "Class loader order" to be "(parent last)".
- websphere cxf factory 不兼容問題
- Spring 4.x与CXF 2.*不兼容
- CXF项目部署到WebSphere7上不兼容的解决方案
- weblogic9 不兼容 cxf 程序的解决方法 (Error creating bean with name 'xxxWebService')
- WebSphere Portlet Factory开发的入门
- 使用 WebSphere Portlet Factory 开发 web 表格
- WebSphere Portlet Factory 快速开发入门
- 使用 WebSphere Portlet Factory 构建SOA 前端
- CXF与JDK 1.6的不兼容,导致会出现SPRING中 Error creating bean with name '***‘ 解决办法
- 系统不兼容
- 不兼容的类型
- IE6不兼容
- css常见不兼容
- 为啥浏览器不兼容
- 火狐插件不兼容
- 注册ocx不兼容
- 解决IE不兼容
- 浏览器不兼容
- 华为:编程实现联想输入法 输入联想功能是非常实用的一个功能,请编程实现类似功能
- 有关C#语言与.NET框架的常见几个试题
- 经典排序算法——冒泡排序Bubble sort
- 贴片电容电阻封装知识
- ACE Reactor和Proactor框架
- websphere cxf factory 不兼容問題
- codeforces Round #180题解
- RS485通信应注意的几点细节
- 问题八十八:Fibonacci数非递归解
- ffmpeg解码流程
- 安卓平台的音视频互动开发平台
- hibernate条件查询注入自定义Bean无需配置文件,取需要的字段
- 《C#入门到精通》学习笔记 -- 抽象类 与 接口
- Web API核查表:设计、测试、发布API时需思考的43件事