You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Vitaly Peressada <vp...@liquidnet.com> on 2011/06/16 18:56:31 UTC
CXF Server No Longer Responds to Localhost
Migrated from
CXF 2.2.2 and Jetty 6.1.18
To
CXF 2.4.0 and Jetty 7 7.3.1.v20110307
We start CXF using JAXRSServerFactoryBean something like:
this.endpointUrl = "http://"
+ InetAddress.getLocalHost().getCanonicalHostName()
+ ":"
+ String.valueOf(this.getListenPort()) + "/";
jaxrsBean.setAddress(this.endpointUrl);
server = jaxrsBean.create();
server.start();
But after upgrade CXF responds only on fully qualified host name eg. http://foo.bar.com and http://localhost... is not working
Not sure if this CXF or jetty issue. Any ideas?
Re: CXF Server No Longer Responds to Localhost
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
If you want Jetty listen to all the network interface you do use this
0.0.0.0:PORT.
On 6/17/11 12:56 AM, Vitaly Peressada wrote:
> Migrated from
> CXF 2.2.2 and Jetty 6.1.18
> To
> CXF 2.4.0 and Jetty 7 7.3.1.v20110307
>
> We start CXF using JAXRSServerFactoryBean something like:
>
> this.endpointUrl = "http://"
> + InetAddress.getLocalHost().getCanonicalHostName()
> + ":"
> + String.valueOf(this.getListenPort()) + "/";
> jaxrsBean.setAddress(this.endpointUrl);
> server = jaxrsBean.create();
> server.start();
>
> But after upgrade CXF responds only on fully qualified host name eg. http://foo.bar.com and http://localhost... is not working
>
> Not sure if this CXF or jetty issue. Any ideas?
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang