There seems that CXF is not compatible with WebSphere 6.1. I wrote a web service for my project. I tested it completely and successfully on JBOSS 4.x. However, when I deployed it on WebSphere 6.1, the deployment itself failed. I have include a portion of exception below for reference.
I also saw the following JIRA on the subject: https://issues.apache.org/jira/browse/CXF-714 Has anybody tested a CXF based web service on WebSphere 6.1? Regards, Ramanand Singh Architecture Team GEICO IBU Service 301.986.2791 Exception Generated: ----- 2007-09-18 16:55:31,801 [server.startup : 1] [] ERROR org.springframework.web.context.ContextLoader:initWebApplicationContext: 200 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' 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.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl incompatible with javax.xml.parsers.DocumentBuilderFactory Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl incompatible with javax.xml.parsers.DocumentBuilderFactory Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl incompatible with javax.xml.parsers.DocumentBuilderFactory at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) at java.util.XMLUtils.getLoadingDoc(XMLUtils.java:90) at java.util.XMLUtils.load(XMLUtils.java:72) at java.util.Properties.loadFromXML(Properties.java:741) at org.apache.cxf.common.util.PropertiesLoaderUtils.loadAllProperties(Prope rtiesLoaderUtils.java:71) at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLMana gerImpl.java:209) at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:521) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.in stantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec t(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g etSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab stractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab stractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.pre InstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(A bstractApplicationContext.java:360) at org.springframework.web.context.ContextLoader.createWebApplicationContex t(ContextLoader.java:241) at org.springframework.web.context.ContextLoader.initWebApplicationContext( ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:49) at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebA pp.java:635) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp. java:279) at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283) at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.jav a:88) at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java :157) at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655) at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.ja va:608) at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerI mpl.java:335) at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImp l.java:551) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl .java:1312) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectS tart(DeployedApplicationImpl.java:1129) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl .java:569) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedAppli cationImpl.java:814) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Applica tionMgrImpl.java:965) at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(Appli cationMgrImpl.java:2131) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(W sComponentImpl.java:341) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469) ==================== This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message.
