How to deploy War file in Jboss fuse
imranrazakhan Sep 12, 2013 12:31 AMHi,
I have developed a webservice using Apache CXF and deployed it on Apache Tomcat and its working fine.
Now i required to deploy it on Jboss Fuse(jboss-fuse-6.0.0.redhat-024). I tried to deploy it by copying in deploy folder but not able to get ?wsdl and found following error in fuse.log
16:28:45,251 | INFO | edhat-024/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Installed E:\jboss-fuse-6.0.0.redhat-024\deploy\HelloCxfWS.war
16:28:49,141 | INFO | Executor: 1 | WebXmlObserver | 229 - org.ops4j.pax.web.pax-web-extender-war - 1.1.11 | Using [HelloCxfWS] as web application context name
16:28:49,141 | INFO | Executor: 1 | WebXmlObserver | 229 - org.ops4j.pax.web.pax-web-extender-war - 1.1.11 | Using [] as web application root path
16:28:49,142 | INFO | edhat-024/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Started bundle: webbundle:file:/E:/jboss-fuse-6.0.0.redhat-024/deploy/HelloCxfWS.war?Web-ContextPath=HelloCxfWS&Bundle-SymbolicName=HelloCxfWS&Bundle-Version=0.0.0
16:28:49,146 | INFO | -1.1.11-thread-1 | HttpServiceFactoryImpl | 100 - org.ops4j.pax.web.pax-web-runtime - 1.1.11 | Binding bundle: [HelloCxfWS [268]] to http service
16:28:49,147 | INFO | Executor: 1 | ContextHandler | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | started HttpServiceContext{httpContext=org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@5cd2f1}
16:28:49,149 | INFO | Executor: 1 | ContextHandler | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | stopped HttpServiceContext{httpContext=org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@5cd2f1}
16:28:49,504 | INFO | Executor: 1 | /HelloCxfWS | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | Initializing Spring root WebApplicationContext
16:28:49,504 | INFO | Executor: 1 | ContextLoader | 174 - org.springframework.web - 3.1.3.RELEASE | Root WebApplicationContext: initialization started
16:28:49,816 | INFO | Executor: 1 | XmlWebApplicationContext | 106 - org.springframework.context - 3.1.3.RELEASE | Refreshing Root WebApplicationContext: startup date [Wed Sep 11 16:28:49 PKT 2013]; root of context hierarchy
16:28:49,830 | INFO | Executor: 1 | XmlBeanDefinitionReader | 105 - org.springframework.beans - 3.1.3.RELEASE | Loading XML bean definitions from ServletContext resource [/WEB-INF/cxf-beans.xml]
16:28:49,869 | INFO | Executor: 1 | XmlBeanDefinitionReader | 105 - org.springframework.beans - 3.1.3.RELEASE | Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
16:28:49,889 | ERROR | Executor: 1 | ContextLoader | 174 - org.springframework.web - 3.1.3.RELEASE | Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/cxf-beans.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.apache.cxf.jaxws.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxws] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[105:org.springframework.beans:3.1.3.RELEASE]
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)[174:org.springframework.web:3.1.3.RELEASE]
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)[174:org.springframework.web:3.1.3.RELEASE]
Please guide how i can deploy it on Fuse and what kind of configuration changes required.
Regards,
imran