You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by stephane_f <mo...@yahoo.fr> on 2012/05/31 11:22:48 UTC
org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered
Hi,
I'm trying to expose a web service through CXF 2.5.2. At deployment, an
exception is raised. The information it contains is in the title.
I saw that some posts already refer to the same problem with previous CXF
versions. I checked what was suggested in the answers, and unfortunately, it
does not work for me. After days of struggle, I'm looking for new ideas
befaore giving up :-((. So if someone has the same problem ...
Regards,
Herafter : additional information
My environment : tomcat 6.0.29, CXF 2.5.2, sun jdk 1.6.0_26
My spring configuration file :
=================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd"
default-autowire="byName">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<jaxws:endpoint id="idpersoWs"
xmlns:s="http://www.pacifica.ca.fr/host/idpersowsdl"
endpointName="s:IdpersoSoapEndpoint" serviceName="s:idperso"
bindingUri="http://schemas.xmlsoap.org/wsdl/soap/http"
wsdlLocation="META-INF/wsdl/idperso.wsdl"
address="idperso" implementor="service.IdpersoServiceProvider">
<jaxws:binding>
<soap:soapBinding version="1.1"/>
</jaxws:binding>
</jaxws:endpoint>
</beans>
=======================================
My pom dependencies :
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-core</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.5.2</version>
</dependency>
=======================================
The web-inf/ lib content :
..
aopalliance-1.0.jar
asm-3.3.jar
commons-logging-1.1.1.jar
cxf-api-2.5.2.jar
cxf-common-utilities-2.5.2.jar
cxf-rt-bindings-soap-2.5.2.jar
cxf-rt-bindings-xml-2.5.2.jar
cxf-rt-core-2.5.2.jar
cxf-rt-databinding-jaxb-2.5.2.jar
cxf-rt-frontend-jaxws-2.5.2.jar
cxf-rt-frontend-simple-2.5.2.jar
cxf-rt-transports-common-2.5.2.jar
cxf-rt-transports-http-2.5.2.jar
cxf-rt-ws-addr-2.5.2.jar
cxf-tools-common-2.5.2.jar
geronimo-javamail_1.4_spec-1.7.1.jar
jaxb-impl-2.1.13.jar
neethi-3.0.1.jar
spring-aop-3.0.6.RELEASE.jar
spring-asm-3.0.6.RELEASE.jar
spring-beans-3.0.6.RELEASE.jar
spring-context-3.0.6.RELEASE.jar
spring-core-3.0.6.RELEASE.jar
spring-expression-3.0.6.RELEASE.jar
spring-web-3.0.6.RELEASE.jar
stax2-api-3.1.1.jar
woodstox-core-asl-4.1.1.jar
wsdl4j-1.6.2.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.1.jar
=====================================
A part of the stack trace
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:353)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:242)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:516)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.ja
va:1544)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:14
85)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 36 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
at
org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:438)
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:325)
... 45 more
Caused by: org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered.
at
org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:115)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
... 48 more
31 mai 2012 11:03:17 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
--
View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-binding-factory-for-namespace-http-schemas-xmlsoap-org-wsdl-soap-regid-tp5708881.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered
Posted by stephane_f <mo...@yahoo.fr>.
Well done Andrei...
It works. I spent a couple of days struggling on this. Hmmm. think I need
glasses for my eyes.
Thanks
Stephane
--
View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-binding-factory-for-namespace-http-schemas-xmlsoap-org-wsdl-soap-regid-tp5708881p5708963.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered
Posted by Andrei Shakirin <as...@talend.com>.
Hi Stephane,
I guess your WSDL has no slash on end of the following namespace:
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
This causes error "Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap registered."
Namespace defined in SoapBindingFactory is http://schemas.xmlsoap.org/wsdl/soap/".
Regards,
Andrei.
-----Original Message-----
From: stephane_f [mailto:monimambou-apache@yahoo.fr]
Sent: 31 May 2012 11:23
To: users@cxf.apache.org
Subject: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap registered
Hi,
I'm trying to expose a web service through CXF 2.5.2. At deployment, an exception is raised. The information it contains is in the title.
I saw that some posts already refer to the same problem with previous CXF versions. I checked what was suggested in the answers, and unfortunately, it does not work for me. After days of struggle, I'm looking for new ideas befaore giving up :-((. So if someone has the same problem ...
Regards,
Herafter : additional information
My environment : tomcat 6.0.29, CXF 2.5.2, sun jdk 1.6.0_26 My spring configuration file :
=================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd"
default-autowire="byName">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<jaxws:endpoint id="idpersoWs"
xmlns:s="http://www.pacifica.ca.fr/host/idpersowsdl"
endpointName="s:IdpersoSoapEndpoint" serviceName="s:idperso"
bindingUri="http://schemas.xmlsoap.org/wsdl/soap/http"
wsdlLocation="META-INF/wsdl/idperso.wsdl"
address="idperso" implementor="service.IdpersoServiceProvider">
<jaxws:binding>
<soap:soapBinding version="1.1"/>
</jaxws:binding>
</jaxws:endpoint>
</beans>
=======================================
My pom dependencies :
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-core</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.5.2</version>
</dependency>
=======================================
The web-inf/ lib content :
..
aopalliance-1.0.jar
asm-3.3.jar
commons-logging-1.1.1.jar
cxf-api-2.5.2.jar
cxf-common-utilities-2.5.2.jar
cxf-rt-bindings-soap-2.5.2.jar
cxf-rt-bindings-xml-2.5.2.jar
cxf-rt-core-2.5.2.jar
cxf-rt-databinding-jaxb-2.5.2.jar
cxf-rt-frontend-jaxws-2.5.2.jar
cxf-rt-frontend-simple-2.5.2.jar
cxf-rt-transports-common-2.5.2.jar
cxf-rt-transports-http-2.5.2.jar
cxf-rt-ws-addr-2.5.2.jar
cxf-tools-common-2.5.2.jar
geronimo-javamail_1.4_spec-1.7.1.jar
jaxb-impl-2.1.13.jar
neethi-3.0.1.jar
spring-aop-3.0.6.RELEASE.jar
spring-asm-3.0.6.RELEASE.jar
spring-beans-3.0.6.RELEASE.jar
spring-context-3.0.6.RELEASE.jar
spring-core-3.0.6.RELEASE.jar
spring-expression-3.0.6.RELEASE.jar
spring-web-3.0.6.RELEASE.jar
stax2-api-3.1.1.jar
woodstox-core-asl-4.1.1.jar
wsdl4j-1.6.2.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.1.jar
=====================================
A part of the stack trace
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:353)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:242)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:516)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.ja
va:1544)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:14
85)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 36 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
at
org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:438)
at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:325)
... 45 more
Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap registered.
at
org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:115)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
... 48 more
31 mai 2012 11:03:17 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
--
View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-binding-factory-for-namespace-http-schemas-xmlsoap-org-wsdl-soap-regid-tp5708881.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered
Posted by stephane_f <mo...@yahoo.fr>.
Hi Glen, thanks for the answer. The problem was the one described by Andrei.
However, interesting to know that the imports are now useless... By the way
the tutorial is really detailled. Thanks for the link.
Regards,
Stephane
--
View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-binding-factory-for-namespace-http-schemas-xmlsoap-org-wsdl-soap-regid-tp5708881p5708966.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: org.apache.cxf.BusException: No binding factory for namespace
http://schemas.xmlsoap.org/wsdl/soap registered
Posted by Glen Mazza <gm...@talend.com>.
http://www.jroller.com/gmazza/entry/web_service_tutorial will work for
CXF 2.6.0, if you can use that version. Offhand, I see two unnecessary
imports in your cxf-servlet.xml file:
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
Those shouldn't be there anymore, and may very well be causing your problem.
HTH,
Glen
On 05/31/2012 05:22 AM, stephane_f wrote:
> Hi,
> I'm trying to expose a web service through CXF 2.5.2. At deployment, an
> exception is raised. The information it contains is in the title.
> I saw that some posts already refer to the same problem with previous CXF
> versions. I checked what was suggested in the answers, and unfortunately, it
> does not work for me. After days of struggle, I'm looking for new ideas
> befaore giving up :-((. So if someone has the same problem ...
> Regards,
>
> Herafter : additional information
> My environment : tomcat 6.0.29, CXF 2.5.2, sun jdk 1.6.0_26
> My spring configuration file :
> =================
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxrs="http://cxf.apache.org/jaxrs"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:soap="http://cxf.apache.org/bindings/soap"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
> http://cxf.apache.org/jaxws
> http://cxf.apache.org/schemas/jaxws.xsd
> http://cxf.apache.org/jaxrs
> http://cxf.apache.org/schemas/jaxrs.xsd"
> default-autowire="byName">
>
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>
>
>
> <jaxws:endpoint id="idpersoWs"
> xmlns:s="http://www.pacifica.ca.fr/host/idpersowsdl"
> endpointName="s:IdpersoSoapEndpoint" serviceName="s:idperso"
> bindingUri="http://schemas.xmlsoap.org/wsdl/soap/http"
> wsdlLocation="META-INF/wsdl/idperso.wsdl"
> address="idperso" implementor="service.IdpersoServiceProvider">
> <jaxws:binding>
> <soap:soapBinding version="1.1"/>
> </jaxws:binding>
> </jaxws:endpoint>
>
> </beans>
> =======================================
> My pom dependencies :
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-core</artifactId>
> <version>2.5.2</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-bindings-soap</artifactId>
> <version>2.5.2</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxws</artifactId>
> <version>2.5.2</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-transports-http</artifactId>
> <version>2.5.2</version>
> </dependency>
> =======================================
> The web-inf/ lib content :
> ..
> aopalliance-1.0.jar
> asm-3.3.jar
> commons-logging-1.1.1.jar
> cxf-api-2.5.2.jar
> cxf-common-utilities-2.5.2.jar
> cxf-rt-bindings-soap-2.5.2.jar
> cxf-rt-bindings-xml-2.5.2.jar
> cxf-rt-core-2.5.2.jar
> cxf-rt-databinding-jaxb-2.5.2.jar
> cxf-rt-frontend-jaxws-2.5.2.jar
> cxf-rt-frontend-simple-2.5.2.jar
> cxf-rt-transports-common-2.5.2.jar
> cxf-rt-transports-http-2.5.2.jar
> cxf-rt-ws-addr-2.5.2.jar
> cxf-tools-common-2.5.2.jar
> geronimo-javamail_1.4_spec-1.7.1.jar
> jaxb-impl-2.1.13.jar
> neethi-3.0.1.jar
> spring-aop-3.0.6.RELEASE.jar
> spring-asm-3.0.6.RELEASE.jar
> spring-beans-3.0.6.RELEASE.jar
> spring-context-3.0.6.RELEASE.jar
> spring-core-3.0.6.RELEASE.jar
> spring-expression-3.0.6.RELEASE.jar
> spring-web-3.0.6.RELEASE.jar
> stax2-api-3.1.1.jar
> woodstox-core-asl-4.1.1.jar
> wsdl4j-1.6.2.jar
> xml-resolver-1.2.jar
> xmlschema-core-2.0.1.jar
> =====================================
> A part of the stack trace
> Caused by: javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:353)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:242)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:516)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.ja
> va:1544)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:14
> 85)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
>
> ... 36 more
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176)
> at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)
> at
> org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:438)
> at
> org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:325)
> ... 45 more
> Caused by: org.apache.cxf.BusException: No binding factory for namespace
> http://schemas.xmlsoap.org/wsdl/soap registered.
> at
> org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:120)
> at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:115)
> at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> ... 48 more
> 31 mai 2012 11:03:17 org.apache.catalina.core.StandardContext start
> GRAVE: Error listenerStart
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/org-apache-cxf-BusException-No-binding-factory-for-namespace-http-schemas-xmlsoap-org-wsdl-soap-regid-tp5708881.html
> Sent from the cxf-user mailing list archive at Nabble.com.
--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza