You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bilel <bb...@hotmail.com> on 2008/06/17 13:29:53 UTC

Re: Noob exception: Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

Hey
I have the same issue, my code works fine in Eclipse, but I got this stack
when I run it anywhere else.
I do already check my classpath, and the cxf-rt-bindings-soap is here!

And this is the stack trace that I got:
org.apache.cxf.service.factory.ServiceConstructionException
   at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:58)
   at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:92)
   at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:376)
   at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:281)
   at javax.xml.ws.Service.getPort(Service.java:94)
........................................................
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:82)
   at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
AbstractWSDLBasedEndpointFactory.java:87)
   at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51)
   at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:92)
   at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:376)
   at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:281)
   at javax.xml.ws.Service.getPort(Service.java:94)

Bilel


dkulp wrote:
> 
> 
> It's usually either a missing jar (cxf-rt-bindings-soap) or an error  
> in the spring configuration (not importing the META-INF/cxf/cxf- 
> extensions-soap.xml).
> 
> I would start off with double checking the classpath to make sure the  
> soap jar is there.
> 
> Dan
> 
> 
> 
> On Jun 16, 2008, at 2:45 PM, Layne Shepherd wrote:
> 
>> Has anyone seen this exception before?  Or have any ideas how to fix  
>> it?  Strange thing is, the code works fine when run with our unit  
>> tests in our maven build, but bombs when run anywhere else.
>>
>> Jun 16, 2008 11:14:43 AM  
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean  
>> buildServiceFromWSDL
>> INFO: Creating Service {http://exacttarget.com/wsdl/ 
>> partnerAPI}PartnerAPI from WSDL:
>> https://webservice.exacttarget.com/etframework.wsdl
>> [2008-06-16 11:14:45,368] [INFO] [main]  
>> (ExactTargetFeedGenerator.java:54) - End ExactTargetFeedGenerator
>> Exception in thread "main" javax.xml.ws.WebServiceException:  
>> org.apache.cxf.service.factory.ServiceConstructionException
>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:249)
>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:234)
>> 	at javax.xml.ws.Service.getPort(Service.java:92)
>> 	at  
>> com.exacttarget.wsdl.partnerapi.PartnerAPI.getSoap(PartnerAPI.java:55)
>> 	at  
>> com 
>> .bbos 
>> .exacttarget.ExactTargetClient.getSoapStub(ExactTargetClient.java:59)
>> 	at  
>> com 
>> .bbos 
>> .exacttarget 
>> .ExactTargetManagerImpl.getSystemStatus(ExactTargetManagerImpl.java: 
>> 176)
>> 	at  
>> com 
>> .bbos 
>> .exacttarget 
>> .ExactTargetFeedGenerator.serviceIsUp(ExactTargetFeedGenerator.java: 
>> 153)
>> 	at com.bbos.exacttarget.ExactTargetFeedGenerator$$FastClassByCGLIB$ 
>> $928f4ba0.invoke(<generated>)
>> 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
>> 	at org.springframework.aop.framework.Cglib2AopProxy 
>> $CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
>> 	at  
>> org 
>> .springframework 
>> .aop 
>> .framework 
>> .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 
>> 139)
>> 	at  
>> org 
>> .springframework 
>> .transaction 
>> .interceptor 
>> .TransactionInterceptor.invoke(TransactionInterceptor.java:107)
>> 	at  
>> org 
>> .springframework 
>> .aop 
>> .framework 
>> .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java: 
>> 161)
>> 	at org.springframework.aop.framework.Cglib2AopProxy 
>> $DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>> 	at com.bbos.exacttarget.ExactTargetFeedGenerator$$EnhancerByCGLIB$ 
>> $5b9f1d5b.serviceIsUp(<generated>)
>> 	at  
>> com 
>> .bbos 
>> .exacttarget 
>> .ExactTargetFeedGenerator.main(ExactTargetFeedGenerator.java:45)
>> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
>> 	at  
>> org 
>> .apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: 
>> 58)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java: 
>> 97)
>> 	at  
>> org 
>> .apache 
>> .cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:89)
>> 	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:369)
>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:247)
>> 	... 15 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:91)
>> 	at  
>> org 
>> .apache 
>> .cxf 
>> .frontend 
>> .AbstractWSDLBasedEndpointFactory 
>> .createEndpoint(AbstractWSDLBasedEndpointFactory.java:92)
>> 	at  
>> org 
>> .apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: 
>> 51)
>> 	... 19 more
>>
> 
> ---
> Daniel Kulp
> dkulp@apache.org
> http://www.dankulp.com/blog
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Noob-exception%3A-Caused-by%3A-org.apache.cxf.BusException%3A-No-binding-factory-for-namespace-http%3A--schemas.xmlsoap.org-wsdl-soap--registered.-tp17870960p17886513.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Noob exception: Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

Posted by Bilel <bb...@hotmail.com>.
Hey
I built a little example but I can't upload it :-(.
 So I performed a little test, I made a jar of a client -consumer-, put all
the dependencies in the classpath, and when I run the jar it work, this test
make me believe that all the issues is in the deploying phase. 

I put these entire dependencies in the classpath:
aopalliance-1.0.jar
commons-logging-1.1.jar
cxf-api-2.1.jar
cxf-common-schemas-2.1.jar
cxf-common-utilities-2.1.jar
cxf-rt-bindings-soap-2.1.jar
cxf-rt-bindings-xml-2.1.jar
cxf-rt-core-2.1.jar
cxf-rt-databinding-aegis-2.1.jar
cxf-rt-databinding-jaxb-2.1.jar
cxf-rt-frontend-jaxws-2.1.jar
cxf-rt-frontend-simple-2.1.jar
cxf-rt-management-2.1.jar
cxf-rt-transports-http-2.1.jar
cxf-rt-transports-http-jetty-2.1.jar
cxf-rt-transports-jms-2.1.jar
cxf-rt-transports-local-2.1.jar
cxf-rt-ws-addr-2.1.jar
cxf-tools-common-2.1.jar
FastInfoset-1.2.2.jar
geronimo-activation_1.1_spec-1.0.2.jar
geronimo-annotation_1.0_spec-1.1.1.jar
geronimo-javamail_1.4_spec-1.3.jar
geronimo-servlet_2.5_spec-1.1.2.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.6.jar
jaxws-api-2.1-1.jar
jetty-6.1.6.jar
jetty-util-6.1.6.jar
neethi-2.0.4.jar
saaj-api-1.3.jar
saaj-impl-1.3.jar
spring-beans-2.0.8.jar
spring-context-2.0.8.jar
spring-core-2.0.8.jar
spring-web-2.0.8.jar
stax-api-1.0-2.jar
wsdl4j-1.6.1.jar
wstx-asl-3.2.4.jar
xml-resolver-1.2.jar
XmlSchema-1.4.2.jar

Any idea ?
NB : sorry for my bad English.

-----
---
Bilel
-- 
View this message in context: http://www.nabble.com/Noob-exception%3A-Caused-by%3A-org.apache.cxf.BusException%3A-No-binding-factory-for-namespace-http%3A--schemas.xmlsoap.org-wsdl-soap--registered.-tp17870960p18107928.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Noob exception: Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

Posted by Bilel <bb...@hotmail.com>.
I will try to make a zip -it is a little bit tricky-, because my work is just
a part of a big project and it relay on a lot of package and jars in the
main project. 
I have tested a simple example and when I make a jar, it is running
perfectly, but if I call this jar from my application it giving me the above
stuck.  
I did found in a forum a description of a similar problem and they talk
about a Spring configuration: 
1-http://forum.springframework.org/showpost.php?p=130083&postcount=3
2-http://springide.org/blog/2007/04/05/adding-support-for-custom-namespaces/

Is this really the problem?
Thank you very much for your help.

Bilel
-- 
View this message in context: http://www.nabble.com/Noob-exception%3A-Caused-by%3A-org.apache.cxf.BusException%3A-No-binding-factory-for-namespace-http%3A--schemas.xmlsoap.org-wsdl-soap--registered.-tp17870960p18052317.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Noob exception: Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

Posted by Daniel Kulp <dk...@apache.org>.
Any chance either of you could zip up a small project that shows the  
problem with a small readme or something that explains how to run it  
and send it to me to look at?

Dan


On Jun 17, 2008, at 7:29 AM, Bilel wrote:

>
> Hey
> I have the same issue, my code works fine in Eclipse, but I got this  
> stack
> when I run it anywhere else.
> I do already check my classpath, and the cxf-rt-bindings-soap is here!
>
> And this is the stack trace that I got:
> org.apache.cxf.service.factory.ServiceConstructionException
>   at
> org 
> .apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: 
> 58)
>   at
> org 
> .apache 
> .cxf 
> .frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java: 
> 92)
>   at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:376)
>   at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:281)
>   at javax.xml.ws.Service.getPort(Service.java:94)
> ........................................................
> 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:82)
>   at
> org 
> .apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
> AbstractWSDLBasedEndpointFactory.java:87)
>   at
> org 
> .apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java: 
> 51)
>   at
> org 
> .apache 
> .cxf 
> .frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java: 
> 92)
>   at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:376)
>   at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:281)
>   at javax.xml.ws.Service.getPort(Service.java:94)
>
> Bilel
>
>
> dkulp wrote:
>>
>>
>> It's usually either a missing jar (cxf-rt-bindings-soap) or an error
>> in the spring configuration (not importing the META-INF/cxf/cxf-
>> extensions-soap.xml).
>>
>> I would start off with double checking the classpath to make sure the
>> soap jar is there.
>>
>> Dan
>>
>>
>>
>> On Jun 16, 2008, at 2:45 PM, Layne Shepherd wrote:
>>
>>> Has anyone seen this exception before?  Or have any ideas how to fix
>>> it?  Strange thing is, the code works fine when run with our unit
>>> tests in our maven build, but bombs when run anywhere else.
>>>
>>> Jun 16, 2008 11:14:43 AM
>>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>>> buildServiceFromWSDL
>>> INFO: Creating Service {http://exacttarget.com/wsdl/
>>> partnerAPI}PartnerAPI from WSDL:
>>> https://webservice.exacttarget.com/etframework.wsdl
>>> [2008-06-16 11:14:45,368] [INFO] [main]
>>> (ExactTargetFeedGenerator.java:54) - End ExactTargetFeedGenerator
>>> Exception in thread "main" javax.xml.ws.WebServiceException:
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:249)
>>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:234)
>>> 	at javax.xml.ws.Service.getPort(Service.java:92)
>>> 	at
>>> com.exacttarget.wsdl.partnerapi.PartnerAPI.getSoap(PartnerAPI.java: 
>>> 55)
>>> 	at
>>> com
>>> .bbos
>>> .exacttarget.ExactTargetClient.getSoapStub(ExactTargetClient.java: 
>>> 59)
>>> 	at
>>> com
>>> .bbos
>>> .exacttarget
>>> .ExactTargetManagerImpl.getSystemStatus(ExactTargetManagerImpl.java:
>>> 176)
>>> 	at
>>> com
>>> .bbos
>>> .exacttarget
>>> .ExactTargetFeedGenerator.serviceIsUp(ExactTargetFeedGenerator.java:
>>> 153)
>>> 	at com.bbos.exacttarget.ExactTargetFeedGenerator$$FastClassByCGLIB$
>>> $928f4ba0.invoke(<generated>)
>>> 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
>>> 	at org.springframework.aop.framework.Cglib2AopProxy
>>> $CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
>>> 	at
>>> org
>>> .springframework
>>> .aop
>>> .framework
>>> .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
>>> 139)
>>> 	at
>>> org
>>> .springframework
>>> .transaction
>>> .interceptor
>>> .TransactionInterceptor.invoke(TransactionInterceptor.java:107)
>>> 	at
>>> org
>>> .springframework
>>> .aop
>>> .framework
>>> .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
>>> 161)
>>> 	at org.springframework.aop.framework.Cglib2AopProxy
>>> $DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>>> 	at com.bbos.exacttarget.ExactTargetFeedGenerator$$EnhancerByCGLIB$
>>> $5b9f1d5b.serviceIsUp(<generated>)
>>> 	at
>>> com
>>> .bbos
>>> .exacttarget
>>> .ExactTargetFeedGenerator.main(ExactTargetFeedGenerator.java:45)
>>> Caused by:  
>>> org.apache.cxf.service.factory.ServiceConstructionException
>>> 	at
>>> org
>>> .apache 
>>> .cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:
>>> 58)
>>> 	at
>>> org
>>> .apache
>>> .cxf
>>> .frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:
>>> 97)
>>> 	at
>>> org
>>> .apache
>>> .cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java: 
>>> 89)
>>> 	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java: 
>>> 369)
>>> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:247)
>>> 	... 15 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:91)
>>> 	at
>>> org
>>> .apache
>>> .cxf
>>> .frontend
>>> .AbstractWSDLBasedEndpointFactory
>>> .createEndpoint(AbstractWSDLBasedEndpointFactory.java:92)
>>> 	at
>>> org
>>> .apache 
>>> .cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:
>>> 51)
>>> 	... 19 more
>>>
>>
>> ---
>> Daniel Kulp
>> dkulp@apache.org
>> http://www.dankulp.com/blog
>>
>>
>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Noob-exception%3A-Caused-by%3A-org.apache.cxf.BusException%3A-No-binding-factory-for-namespace-http%3A--schemas.xmlsoap.org-wsdl-soap--registered.-tp17870960p17886513.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

---
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog