title: Incompatible neethi.jar with WAS 7
body: <p>I am deploying one application Apache CXF-2.7.5 with neethi-3.0.2 in
   websphere 7. I am getting below error. My Application is spring driven.
   When I degraded Apache CXF to apache CXF-2.3.5. Application successfully
   deployed. </p>
  
  <p>The same is working perfectly in Tomcat7.</p>
  
  <p>I am able to reproduce this issue on Tomcat by adding (or overriding) a dependency of neethi.jar (with an older version --> 2.5.x) in pom.xml file.</p>
  
  <p><strong>Note:</strong> Apache CXF 2.7.5 comes with a latest version of neethi.jar (3.0.2), hence not causing issue on Tomcat7.</p>
  
  <p>Is Web sphere picking up an older version of <strong>neethi.jar</strong></p>
  
  <p><strong>Stack Trace</strong> is below :</p>
  
  <pre><code>[7/9/13 19:46:38:577 GMT+05:30] 00000012 FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_2a7e2a7e_13.07.09_19.46.38.57558021.txt com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest() 309
  [7/9/13 19:46:38:582 GMT+05:30] 00000012 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[CXFServlet]: 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.
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
          at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
          at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
          at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
          at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1588)
          at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:350)
          at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:292)
          at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:99)
          at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:167)
          at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:722)
  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.
          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)
          ... 35 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:173)
          at org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:185)
          at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:138)
          at org.apache.cxf.bus.extension.ExtensionManagerBus.&lt;init&gt;(ExtensionManagerBus.java:126)
          at org.apache.cxf.bus.extension.ExtensionManagerBus.&lt;init&gt;(ExtensionManagerBus.java:138)
          at org.apache.cxf.bus.spring.SpringBus.&lt;init&gt;(SpringBus.java:47)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:45)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
          at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
          ... 37 more
  Caused by: java.lang.IncompatibleClassChangeError: org.apache.neethi.AssertionBuilderFactory
          at java.lang.ClassLoader.defineClassImpl(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:726)
          at com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:645)
          at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:468)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
  </code></pre>
  
  <p>Please help</p>