当我在WebSphere 8.5上部署我们的CXF Web服务时,我收到了异常:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is 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: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
... more
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: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
... more
Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
... more
Caused by: java.lang.IncompatibleClassChangeError: org.apache.neethi.AssertionBuilderFactory
根本原因是使用来自WebSphere服务器库的neethi实现
答案 0 :(得分:0)
可以在一个解决方案中设置PARENT_LAST ClassLoadeer顺序:
Enterprise Applications > {app_name} > Manage Modules > {web_module_name}
以及给定的Web模块:
<s:select value="aaa" id="source_id" listValue="name" disabled="true" />
<s:hidden name="destination_name" />
$('input[name="destination_name"]').val(
$("#source_id option:selected").val()
);
我想在部署配置中设置它,但如果不使用EAR应用程序格式则无法使用。