You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Stephane Nicoll (JIRA)" <ji...@apache.org> on 2010/11/22 15:00:21 UTC

[jira] Resolved: (CXF-3119) Jetty http integration does not work anymore

     [ https://issues.apache.org/jira/browse/CXF-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll resolved CXF-3119.
----------------------------------

    Resolution: Not A Problem

The problem was because my spring context was also loading cxf-servlet.xml and this file could not be loaded alongside the jetty transport. Removing that file when jetty needs to be used solved my problem.

If it's done yet, it would be worth explaining how Spring can be initialized and what are the mandatory configuration files.

Thanks

> Jetty http integration does not work anymore
> --------------------------------------------
>
>                 Key: CXF-3119
>                 URL: https://issues.apache.org/jira/browse/CXF-3119
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.0
>         Environment: Spring 2.5.6
>            Reporter: Stephane Nicoll
>            Assignee: Willem Jiang
>
> A discussion on this topic can be found here:  http://cxf.547215.n5.nabble.com/cxf-2-3-and-Jetty-7-td3228126.html#a3228126
> I still don't understand the real cause of my problem but at least I can see what change caused it.
> In 2.21 the JettyHTTPTransportFactory bean stored in cxf-extension-http-jetty.xml is as follows
> {code:xml}
> <bean class="org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory"
> 	  id="org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory"
>     	lazy-init="false" 
>     	depends-on="org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory">
>         <property name="bus" ref="cxf"/>
>         <property name="transportIds">
>             <list>
>                 <value>http://schemas.xmlsoap.org/soap/http</value>
>                 <value>http://schemas.xmlsoap.org/wsdl/http/</value>
>                 <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
>  	            <value>http://www.w3.org/2003/05/soap/bindings/HTTP/</value>
>                 <value>http://cxf.apache.org/transports/http/configuration</value>
>                 <value>http://cxf.apache.org/bindings/xformat</value>
>             </list>
>         </property>
>     </bean>
> {code}
> this is the 2.3.0 version
> {code:xml}
> <bean class="org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory"
> 	  id="org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory"
>     	lazy-init="true">
>         <property name="bus" ref="cxf"/>
>         <property name="transportIds">
>             <list>
>                 <value>http://cxf.apache.org/transports/http</value>
>                 <value>http://cxf.apache.org/transports/http/configuration</value>
>                 <value>http://schemas.xmlsoap.org/wsdl/http</value>
>                 <value>http://schemas.xmlsoap.org/wsdl/http/</value>
>             </list>
>         </property>
>     </bean>
> {code}
> Two things to notice:
> * Lazy init
> * Transport ids have changed
> Both seem to cause the issue. If I override the bean definition in a CXF 2.3 env with the 2.2.11 version, my test passes. Flipping only the lazy init or the transport itd will not work.
> I don't know what caused this change so let me know so that I can give you more information about my environment.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.