You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by cogitate <mo...@gmail.com> on 2011/05/08 20:50:32 UTC

CXF-2.4.0 possible bug in HTTP and Local Transport Configs incompatible

trying to use "local" protocol with the following spring config with
cxf-2.4.0 
throws errors when in version : 2.3.3 it worked - just have to replace
HTTPTransportFactory with ClientOnlyHttpTransportFactory.

i think this is a bug in version 2.4.0.

here's a fragment of my spring config . it doesn't really matter if i do
lazy-init="true" or lazy-init="false".



    <bean class="org.apache.cxf.transport.local.LocalTransportFactory"
lazy-init="false">
        <property name="transportIds">
            <list>
                <value>http://cxf.apache.org/transports/local</value>
            </list>
        </property>

    </bean>


    <bean class="org.apache.cxf.transport.http.HTTPTransportFactory"
lazy-init="true">
        <property name="transportIds">
            <list>
                <value>http://cxf.apache.org/bindings/xformat</value>
                <value>http://schemas.xmlsoap.org/soap/http</value>
                <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
            </list>
        </property>
    </bean>

regards


--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-2-4-0-possible-bug-in-HTTP-and-Local-Transport-Configs-incompatible-tp4380345p4380345.html
Sent from the cxf-issues mailing list archive at Nabble.com.

Re:CXF-2.4.0 possible bug in HTTP and Local Transport Configs incompatible

Posted by cogitate <mo...@gmail.com>.
posting a solution to the "problem".

if i remove all "spring configs" that i had with earlier versions , it
works. 
so fyi :
    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />

     
    


--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-2-4-0-possible-bug-in-HTTP-and-Local-Transport-Configs-incompatible-tp4380345p4380445.html
Sent from the cxf-issues mailing list archive at Nabble.com.

Re: CXF-2.4.0 possible bug in HTTP and Local Transport Configs incompatible

Posted by cogitate <mo...@gmail.com>.
thanks Willem however the problem is still unsolved in cxf-2.4.0 

it seems i can't have both local protocol and http protocol within the same
spring context file. 

as the example above shows if i have the following configured and i try to
call an endpoint configured with local protocol

 <import resource="classpath:META-INF/cxf/cxf.xml" />
    <bean class="org.apache.cxf.transport.http.HTTPTransportFactory"
lazy-init="true">
        <property name="transportIds">
            <list>
                <value>http://cxf.apache.org/bindings/xformat</value>
                <value>http://schemas.xmlsoap.org/soap/http</value>
                <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
            </list>
        </property>
    </bean>

    <bean class="org.apache.cxf.transport.local.LocalTransportFactory"
lazy-init="true">
        <property name="transportIds">
            <list>
                <value>http://cxf.apache.org/transports/local</value>
            </list>
        </property>
    </bean>

HttpTransportFactory needs to be configured since i need the xformat binding
for sending xml requests.
thanks,




--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-2-4-0-possible-bug-in-HTTP-and-Local-Transport-Configs-incompatible-tp4380345p4383631.html
Sent from the cxf-issues mailing list archive at Nabble.com.

Re: CXF-2.4.0 possible bug in HTTP and Local Transport Configs incompatible

Posted by "Willem.Jiang" <wi...@gmail.com>.
Hi,

In CXF 2.4.0, we don't use spring to load the extensions by default.
If you want to replace the components with a customer configuration, you
have to include this line 

 <import resource="classpath:META-INF/cxf/cxf.xml" />

Willem

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-2-4-0-possible-bug-in-HTTP-and-Local-Transport-Configs-incompatible-tp4380345p4381224.html
Sent from the cxf-issues mailing list archive at Nabble.com.