[
https://issues.apache.org/jira/browse/CXF-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16382444#comment-16382444
]
ROHIT AGGARWAL commented on CXF-7660:
-------------------------------------
Thanks for sharing the information but after going through the stack overflow
link and making the below changes as well i am getting the same issue, please
help me on this.
1) Checked the lib folder of websphere but there's no old version of neethi jar
is there.
2) upgrade the neethi jar from 3.0.2 to 3.1.0 but still getting the same issue
3) removed the below jar but not able to build the code as well as we are
getting no def found error for one of the class in Stax api so include stax api
and removed the rest two but still facing the same issue.
{{geronimo-servlet_3.0_spec-1.0.jar }}
{{geronimo-javamail_1.4_spec-1.7.1.jar }}
{{stax-api-1.0.1.jar}}
> 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
> Priority: Major
>
> 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)