You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ANAND RAI (JIRA)" <ji...@apache.org> on 2009/06/12 10:28:07 UTC
[jira] Created: (CXF-2284) org.apache.cxf.BusException: No binding
factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
-----------------------------------------------------------------------------------------------------------------
Key: CXF-2284
URL: https://issues.apache.org/jira/browse/CXF-2284
Project: CXF
Issue Type: Bug
Affects Versions: 2.1.5
Environment: Win XP
Reporter: ANAND RAI
Priority: Blocker
I have a client application to consume a webservice , the application works correctly as a standalone application on Eclipse . When i integrate it with my rest of project it fails on JBOSS . Our project exposes some webservices at one end and consume webservice at the other end .Both consumption and production of webservice is done using CXF .
I got following exception when i degugged the code ..
org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
I found out possible solutions for this problem .
1. Import CXF.xml
2. Import cxf-rt-bindings-soap-2.1.3.jar
I have following imports in Spring Configuration , i verifies that all beans declared in these xml are getting created
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
cxf-rt-bindings-soap-2.1.3.jar is present in my classpath (WEB-INF/lib) .
Please advice .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2284) org.apache.cxf.BusException: No
binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/
registered."
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719724#action_12719724 ]
Daniel Kulp commented on CXF-2284:
----------------------------------
That all looks OK. I'm not seeing anything obvious. Any chance you can strip things down a bit into a project that can be attached here for debugging?
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2284) org.apache.cxf.BusException: No binding
factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
Posted by "ANAND RAI (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ANAND RAI updated CXF-2284:
---------------------------
Attachment: screenshot-1.jpg
The snapshot shows all jars in WEB-INF/lib
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2284) org.apache.cxf.BusException: No
binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/
registered."
Posted by "Richard Flitcroft (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755706#action_12755706 ]
Richard Flitcroft commented on CXF-2284:
----------------------------------------
I have this issue when using Maven to build a jar file -with-dependencies, since I just wanted a single jar file with which to deploy my web services application.
If I deploy my application with all dependencies in their original jars, the problem goes away.
So it must be a packaging/deployment issue.
I strongly suspect this is to do with the META-INF/cxf/cfx.extension files which are present in many of the cxf jars, but only of which makes it into the fat jar file of course.
That should help....
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2284) org.apache.cxf.BusException: No
binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/
registered."
Posted by "Vijay Katam (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912813#action_12912813 ]
Vijay Katam commented on CXF-2284:
----------------------------------
I faced a similar issue, as Richard Flitcroft pointed out it is an issue when using maven assembly plugin to build an uber executable war. There is a workaround using maven shady plugin which constructs an uber war which does not override the META-INF/cxf/*.* files .
Using resource transformers in maven shady plugin these files can be combined.
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2284) org.apache.cxf.BusException: No binding
factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
Posted by "ANAND RAI (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ANAND RAI updated CXF-2284:
---------------------------
Description:
I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
Following spring configuration was used to create stub .
<bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
<property name="serviceInterface" value="x.y.AccountManagerPortType" />
<property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
<property name="namespaceUri" value="http://x.y" />
<property name="serviceName" value="AccountManager" />
<property name="portName" value="AccountManagerSOAP11port_http" />
</bean>
Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
CXF logging was enable by following configuration
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
"org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
Below is a snapshot of eclipse in debug persepective
this DefaultListableBeanFactory (id=257)
ex WebServiceException (id=485)
cause ServiceConstructionException (id=629)
cause BusException (id=633)
cause BusException (id=633)
detailMessage null
message Message (id=638)
bundle PropertyResourceBundle (id=641)
code "NO_BINDING_FACTORY_EXC" (id=644)
parameters Object[1] (id=645)
stackTrace null
detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
stackTrace null
detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
beanName "subscriberService" (id=488)
bean JaxWsPortProxyFactoryBean (id=440)
mbd RootBeanDefinition (id=490)
wrappedBean JaxWsPortProxyFactoryBean (id=440)
I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
I have following spring imports in spring configuration
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
I added some more imports ,but didn't prooved to be any help .
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
I tried another approach to consume webservice .
<beans default-init-method="beanInit" default-destroy-method="beanDestroy"
xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:hlapi="http://x.y"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<jaxws:client id="accountService"
serviceClass="x.y.AccountManagerPortType"
address="http://xyz:8084/someName/services/AccountManager"
serviceName="hlapi:AccountManager"
endpointName="hlapi:AccountManagerSOAP11port_http"/>
I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
Please advise any possible solution .
was:
I have a client application to consume a webservice , the application works correctly as a standalone application on Eclipse . When i integrate it with my rest of project it fails on JBOSS . Our project exposes some webservices at one end and consume webservice at the other end .Both consumption and production of webservice is done using CXF .
I got following exception when i degugged the code ..
org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
I found out possible solutions for this problem .
1. Import CXF.xml
2. Import cxf-rt-bindings-soap-2.1.3.jar
I have following imports in Spring Configuration , i verifies that all beans declared in these xml are getting created
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
cxf-rt-bindings-soap-2.1.3.jar is present in my classpath (WEB-INF/lib) .
Please advice .
Added a more detailed exception .
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2284) org.apache.cxf.BusException: No binding
factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
Posted by "ANAND RAI (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ANAND RAI updated CXF-2284:
---------------------------
Component/s: Soap Binding
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2284) org.apache.cxf.BusException: No
binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/
registered."
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766612#action_12766612 ]
Daniel Kulp commented on CXF-2284:
----------------------------------
Is this still an issue? I would need a debuggable test case or something to see what is going on.
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2284) org.apache.cxf.BusException: No binding
factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2284.
------------------------------
Resolution: Fixed
Marking as resolved as not reproducible test case was provided and no updates in a couple months.
> org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered."
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CXF-2284
> URL: https://issues.apache.org/jira/browse/CXF-2284
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.1.5
> Environment: Win XP
> Reporter: ANAND RAI
> Priority: Blocker
> Attachments: screenshot-1.jpg
>
>
> I am writing a Component using CXF to consume an AXIS webservice hosted on Tomcat.The component works absolutely fine as a standalone application on eclipse , but things get worst when i integrate it with rest of project which has another component exposing CXF Webservice . I am using CXF 2.1.5 accross my application (for consuming and producing) .
> Following spring configuration was used to create stub .
> <bean id="accountService" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
> <property name="serviceInterface" value="x.y.AccountManagerPortType" />
> <property name="wsdlDocumentUrl" value="http://xyz:8084/someName/services/AccountManager?wsdl" />
> <property name="namespaceUri" value="http://x.y" />
> <property name="serviceName" value="AccountManager" />
> <property name="portName" value="AccountManagerSOAP11port_http" />
> </bean>
> Spring logs show that spring is not able to create AccountManagerSOAP11port_http.jaxws-client.proxy .
> CXF logging was enable by following configuration
> <cxf:bus>
> <cxf:features>
> <cxf:logging />
> </cxf:features>
> </cxf:bus>
> to notice that CXF is able to send and recieve message ,but its returning back a null object.Initially it appeared to me as if it is some issue with SOAPHandler or jaxb .After some debugging i noticed that spring is getting an exception while creating above service the exception was
> "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered ".
> I wasn't able to get a stack trace, because spring was eating up the exception and rather giving a friendly message which didn't make much sense to me except that it failed to create "AccountManagerSOAP11port_http.jaxws-client.proxy " .
> Below is a snapshot of eclipse in debug persepective
> this DefaultListableBeanFactory (id=257)
> ex WebServiceException (id=485)
> cause ServiceConstructionException (id=629)
> cause BusException (id=633)
> cause BusException (id=633)
> detailMessage null
> message Message (id=638)
> bundle PropertyResourceBundle (id=641)
> code "NO_BINDING_FACTORY_EXC" (id=644)
> parameters Object[1] (id=645)
> stackTrace null
> detailMessage "org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered." (id=636) message null
> stackTrace null
> detailMessage "org.apache.cxf.service.factory.ServiceConstructionException" (id=632) stackTrace null
> beanName "subscriberService" (id=488)
> bean JaxWsPortProxyFactoryBean (id=440)
> mbd RootBeanDefinition (id=490)
> wrappedBean JaxWsPortProxyFactoryBean (id=440)
> I googled this exception and found that many people have reported same problem and for most of queries the cause is suggested to be missing CXF-extension-soap.xml or cxf-rt-bindings-soap-2.1.3.jar missing in classpath .But in my case i have both of them
> I have following spring imports in spring configuration
> <import resource="classpath:META-INF/cxf/cxf.xml" />
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> and cxf-rt-bindings-soap-2.1.3.jar is present in web-inf/lib of the war file .
> I added some more imports ,but didn't prooved to be any help .
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-management.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> <import resource="classpath:META-INF/cxf/cxf-extension-addr.xml"/>
>
> I tried another approach to consume webservice .
> <beans default-init-method="beanInit" default-destroy-method="beanDestroy"
> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xmlns:hlapi="http://x.y"
> xmlns:context="http://www.springframework.org/schema/context"
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
> http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
> <jaxws:client id="accountService"
> serviceClass="x.y.AccountManagerPortType"
> address="http://xyz:8084/someName/services/AccountManager"
> serviceName="hlapi:AccountManager"
> endpointName="hlapi:AccountManagerSOAP11port_http"/>
> I wasn't able to get any exception while debugging , but i am facing the same issue as with previous approach , CXF logs inbound and outbound messages , but its returning me a null object .
> This has become a blocking issue for me and my team ,i am stuck on this issue since past week .
> Please advise any possible solution .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.