ROHIT AGGARWAL created CXF-7660:
-----------------------------------
Summary: Facing compatibility issue while upgrading CXF with java
6 to java 8 and webshphere
Key: CXF-7660
URL: https://issues.apache.org/jira/browse/CXF-7660
Project: CXF
Issue Type: Bug
Reporter: ROHIT AGGARWAL
Hi All,
I am working on upgrading java from 6 to 8 and WebSphere from 8.5.5.3 to
8.5.5.11 . Facing below issue while hitting web services wsdl.
Currently we are using spring 2.5 and apache cxf 2.3.9 and after upgrading it
to spring 4.1.9 and cxf 3.1.14 i am facing the below issue.Moreover i take the
updated version of Neethi jar as well but still facing the same issue. Please
suggest.
[2/28/18 14:18:28:096 EST] 00000070 ServletWrappe E
com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0271E: Uncaught init()
exception created by servl
et [dispatcher] in application [VTX-WebApp]:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'cxf' defined in class pa
th resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.BeanInstantiationException: Failed to
instant
iate [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.
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1099)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1044)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at
com.vesystems.ws.services.impl.CustomContextLoaderListener.contextInitialized(Unknown
Source)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1732)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:415)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:785)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2220)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to
instantiate [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.
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1092)
... 39 more
Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load
extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:183)
at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:199)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:144)
at
org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:179)
at
org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:191)
at org.apache.cxf.bus.spring.SpringBus.<init>(SpringBus.java:45)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:88)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:437)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 41 more
Caused by: java.lang.IncompatibleClassChangeError:
org.apache.neethi.AssertionBuilderFactory
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)